Signal
WPEPlatformGamepad::analog-button-event
unstable since: 2.56
Declaration
void
analog_button_event (
WPEGamepad* self,
WPEGamepadButton button,
gdouble value,
gpointer user_data
)
Description [src]
Emitted when an analog button value changes.
This signal is only emitted for analog buttons, and is not emitted for digital buttons.
The value of button is normalized to the range 0.0-1.0, where 0.0 is not pressed and 1.0 is fully pressed.
For digital buttons, the WPEGamepad::button-event signal is emitted instead.
| Default handler: The default handler is called after the handlers added via |
| Available since: 2.56 |
Parameters
button-
Type:
WPEGamepadButtonA
WPEGamepadButton. value-
Type:
gdoubleThe value of
button(0.0-1.0).