Drag[en]gine Script Module DragonScript
1.23
|
Gamepad trigger tracker. More...
Classes | |
class | DefaultListener |
Default listener. More... | |
interface | Listener |
Listener. More... | |
class | TriggerState |
Trigger state. More... | |
Public Member Functions | |
void | addListener (Listener listener) |
Add listener. More... | |
GamepadTriggerTracker | new () |
Create trigger tracker. More... | |
void | reloadTriggers () |
Reload triggers. More... | |
void | removeListener (Listener listener) |
Remove listener. More... | |
void | sendPullEvent (InputEventSource system, int device, int axis, int trigger) |
Send pull event to listeners. More... | |
Public Attributes | |
SafeArray | pListeners |
Array | pTriggerStates |
Protected Member Functions | |
void | inputEventAxisMove (InputEvent event) |
Input event axis move. More... | |
Gamepad trigger tracker.
Helper class to track trigger being pulled and released for gamepads in InputProcessors. Upon creating an instance of GamepadTriggerTracker all gamepad triggers are located with their current value. Then forward events received by inputEvent() to GamepadTriggerTracker. Tracked pull and release events are then send to listener.
This class is designed for short use. For this reason this class does not track devices being attached or detached.
void Dragengine.Gui.GamepadTriggerTracker.addListener | ( | Listener | listener | ) |
Add listener.
|
protected |
Input event axis move.
GamepadTriggerTracker Dragengine.Gui.GamepadTriggerTracker.new | ( | ) |
Create trigger tracker.
void Dragengine.Gui.GamepadTriggerTracker.reloadTriggers | ( | ) |
Reload triggers.
void Dragengine.Gui.GamepadTriggerTracker.removeListener | ( | Listener | listener | ) |
Remove listener.
void Dragengine.Gui.GamepadTriggerTracker.sendPullEvent | ( | InputEventSource | system, |
int | device, | ||
int | axis, | ||
int | trigger | ||
) |
Send pull event to listeners.
SafeArray Dragengine.Gui.GamepadTriggerTracker.pListeners |
Array Dragengine.Gui.GamepadTriggerTracker.pTriggerStates |