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