Class

WPEPlatformGamepad

Description

abstract class WPEPlatform.Gamepad : GObject.Object {
  parent_instance: GObject,
  priv: WPEGamepadPrivate*
}
No description available.

Hierarchy

hierarchy this WPEGamepad ancestor_0 GObject ancestor_0--this

Ancestors

Instance methods

wpe_gamepad_axis_event

Emit the signal WPEGamepad::axis-event.

wpe_gamepad_button_event

Emit the signal WPEGamepad::button-event.

wpe_gamepad_get_name

Get the gamepad name.

wpe_gamepad_start_input_monitor

Start monitoring input on gamepad. Signals WPEGamepad::button-event and WPEGamepad::axis-event will not be emitted until this function is called.

wpe_gamepad_stop_input_monitor

Stop monitoring input on gamepad. Signals WPEGamepad::button-event and WPEGamepad::axis-event will not be emitted after this function is called.

Methods inherited from GObject (43)

Please see GObject for a full list of methods.

Properties

WPEPlatform.Gamepad:name

The name of the gamepad.

Signals

WPEPlatform.Gamepad::axis-event

Emitted when value of axis changes.

WPEPlatform.Gamepad::button-event

Emitted when a button is pressed or released.

Signals inherited from GObject (1)
GObject::notify

The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.

Class structure

struct WPEPlatformGamepadClass {
  GObjectClass parent_class;
  void (* start_input_monitor) (
    WPEGamepad* gamepad
  );
  void (* stop_input_monitor) (
    WPEGamepad* gamepad
  );
  None padding;
  
}
No description available.
Class members
parent_class: GObjectClass
No description available.
start_input_monitor: void (* start_input_monitor) ( WPEGamepad* gamepad )
No description available.
stop_input_monitor: void (* stop_input_monitor) ( WPEGamepad* gamepad )
No description available.
padding: None
No description available.

Virtual methods

WPEPlatform.GamepadClass.start_input_monitor

Start monitoring input on gamepad. Signals WPEGamepad::button-event and WPEGamepad::axis-event will not be emitted until this function is called.

WPEPlatform.GamepadClass.stop_input_monitor

Stop monitoring input on gamepad. Signals WPEGamepad::button-event and WPEGamepad::axis-event will not be emitted after this function is called.