Retro.KeyJoypadMapping

g GObject.Object GObject.Object Retro.KeyJoypadMapping Retro.KeyJoypadMapping GObject.Object->Retro.KeyJoypadMapping

Subclasses:None

Methods

Inherited:GObject.Object (37)
Structs:GObject.ObjectClass (5)
class new ()
class new_default ()
  get_button_key (button)
  set_button_key (button, hardware_keycode)

Virtual Methods

Inherited:GObject.Object (7)

Properties

None

Signals

Inherited:GObject.Object (1)

Fields

Inherited:GObject.Object (1)

Class Details

class Retro.KeyJoypadMapping(**kwargs)
Bases:GObject.Object
Abstract:No
Structure:Retro.KeyJoypadMappingClass
classmethod new()
Returns:a new Retro.KeyJoypadMapping
Return type:Retro.KeyJoypadMapping

Creates a new Retro.KeyJoypadMapping.

classmethod new_default()
Returns:a new Retro.KeyJoypadMapping
Return type:Retro.KeyJoypadMapping

Creates a new Retro.KeyJoypadMapping with the default mapping.

get_button_key(button)
Parameters:button (Retro.JoypadId) – joypad button id
Returns:mapping key code
Return type:int

Gets the mapping key code for the joypad button id.

set_button_key(button, hardware_keycode)
Parameters:
  • button (Retro.JoypadId) – joypad button id
  • hardware_keycode (int) – mapping key code

Maps the joypad button id to mapping key code.