|
Drag[en]gine Script Module DragonScript 1.32.1
|
Immutable gamepad event. More...
Public Member Functions | |
| float | getAxisValue () |
| Axis value. | |
| int | getCode () |
| Axis or button index. | |
| int | getDevice () |
| Input device index. | |
| InputDeviceAxisType | getInputAxisType () |
| Input axis type or null if not valid. | |
| InputDeviceButtonType | getInputButtonType () |
| Input button type or null if not valid. | |
| InputDevice | getInputDevice () |
| Input device or null. | |
| InputDeviceAxis | getInputDeviceAxis () |
| Input device axis or null. | |
| InputDeviceButton | getInputDeviceButton () |
| Input device button or null. | |
| InputEventSource | getSystem () |
| Source system. | |
| GamepadEvent | new (Object source, int id, InputEventSource system, int device, int code, int modifiers) |
| Create event. | |
| GamepadEvent | new (Object source, int id, InputEventSource system, int device, int code, int modifiers, float axisValue) |
| Create event. | |
| GamepadEvent | new (Object source, int id, int device, int code, int modifiers) |
| Create event. | |
| GamepadEvent | new (Object source, int id, int device, int code, int modifiers, float axisValue) |
| Create event. | |
Public Member Functions inherited from Dragengine.Gui.Events.ModifiableEvent | |
| int | getModifiers () |
| Modifier keys. | |
| ModifiableEvent | new (Object source, int id, int modifiers) |
| Create event. | |
Public Member Functions inherited from Dragengine.Gui.Events.Event | |
| int | getIdentifier () |
| Event identifier. | |
| Object | getSource () |
| Event source. | |
| Event | new (Object source, int id) |
| Create event. | |
Static Public Member Functions | |
| static bool | isGamepadEvent (int identifier) |
| Event identifier is an input device event identifier. | |
Public Attributes | |
| float | pAxisValue |
| int | pCode |
| int | pDevice |
| InputEventSource | pSystem |
Static Public Attributes | |
| static final int | idGamepadAxisMoved = 90 |
| Input device axis moved event identifier. | |
| static final int | idGamepadButtonPressed = 91 |
| Input device button pressed event identifier. | |
| static final int | idGamepadButtonReleased = 92 |
| Input device button released event identifier. | |
Static Public Attributes inherited from Dragengine.Gui.Events.ModifiableEvent | |
| static final int | alt = 4 |
| Alt key pressed. | |
| static final int | control = 2 |
| Control key pressed. | |
| static final int | shift = 1 |
| Shift key pressed. | |
Immutable gamepad event.
Used for input events outside mouse and keyboard handling.
| float Dragengine.Gui.Events.GamepadEvent.getAxisValue | ( | ) |
Axis value.
| int Dragengine.Gui.Events.GamepadEvent.getCode | ( | ) |
Axis or button index.
| int Dragengine.Gui.Events.GamepadEvent.getDevice | ( | ) |
Input device index.
| InputDeviceAxisType Dragengine.Gui.Events.GamepadEvent.getInputAxisType | ( | ) |
Input axis type or null if not valid.
Call this only for events of type idGamepadAxisMoved.
| InputDeviceButtonType Dragengine.Gui.Events.GamepadEvent.getInputButtonType | ( | ) |
Input button type or null if not valid.
Call this only for events of type idGamepadButtonPressed or idGamepadButtonReleased.
| InputDevice Dragengine.Gui.Events.GamepadEvent.getInputDevice | ( | ) |
Input device or null.
| InputDeviceAxis Dragengine.Gui.Events.GamepadEvent.getInputDeviceAxis | ( | ) |
Input device axis or null.
Call this only for events of type idGamepadAxisPressed or idGamepadAxisReleased.
| InputDeviceButton Dragengine.Gui.Events.GamepadEvent.getInputDeviceButton | ( | ) |
Input device button or null.
Call this only for events of type idGamepadButtonPressed or idGamepadButtonReleased.
| InputEventSource Dragengine.Gui.Events.GamepadEvent.getSystem | ( | ) |
Source system.
|
static |
Event identifier is an input device event identifier.
| GamepadEvent Dragengine.Gui.Events.GamepadEvent.new | ( | Object | source, |
| int | id, | ||
| InputEventSource | system, | ||
| int | device, | ||
| int | code, | ||
| int | modifiers | ||
| ) |
Create event.
For use with idGamepadButtonPressed and idGamepadButtonReleased.
| GamepadEvent Dragengine.Gui.Events.GamepadEvent.new | ( | Object | source, |
| int | id, | ||
| InputEventSource | system, | ||
| int | device, | ||
| int | code, | ||
| int | modifiers, | ||
| float | axisValue | ||
| ) |
Create event.
For use with idGamepadAxisMoved.
| GamepadEvent Dragengine.Gui.Events.GamepadEvent.new | ( | Object | source, |
| int | id, | ||
| int | device, | ||
| int | code, | ||
| int | modifiers | ||
| ) |
Create event.
| GamepadEvent Dragengine.Gui.Events.GamepadEvent.new | ( | Object | source, |
| int | id, | ||
| int | device, | ||
| int | code, | ||
| int | modifiers, | ||
| float | axisValue | ||
| ) |
Create event.
|
static |
Input device axis moved event identifier.
|
static |
Input device button pressed event identifier.
|
static |
Input device button released event identifier.
| float Dragengine.Gui.Events.GamepadEvent.pAxisValue |
| int Dragengine.Gui.Events.GamepadEvent.pCode |
| int Dragengine.Gui.Events.GamepadEvent.pDevice |
| InputEventSource Dragengine.Gui.Events.GamepadEvent.pSystem |