Drag[en]gine Script Module DragonScript
1.23
|
Binding of command to input event on device. More...
Public Member Functions | |
bool | equals (Object other) |
Bindings are equal. More... | |
Command | getCommand () |
Bound command. More... | |
String | getDeviceID () |
Input device identifier. More... | |
int | getDeviceIndex () |
Device index or -1 if not set. More... | |
InputDevice | getInputDevice () |
Device or null if not set. More... | |
InputDeviceAxis | getInputDeviceAxis () |
Device axis or null if not set. More... | |
InputDeviceButton | getInputDeviceButton () |
Device button or null if not set. More... | |
InputDeviceFeedback | getInputDeviceFeedback () |
Device feedback or null if not set. More... | |
bool | getInverseAxis () |
Inverse axis. More... | |
bool | getSimulateAxisPressed () |
Axis pressed simulation state. More... | |
String | getSourceID () |
Axis or button identifier. More... | |
int | getSourceIndex () |
Source index or -1 if not set. More... | |
InputEventSource | getSystem () |
System or null if not set. More... | |
Binding | new (Binding binding) |
Create copy of binding. More... | |
Binding | new (Binding binding, Command command) |
Create copy of binding with different command. More... | |
Binding | new (String deviceID, String sourceID, Command command, bool inverseAxis) |
Create binding. More... | |
void | setDeviceIndex (int index) |
Set device index or -1 if not set. More... | |
void | setSimulateAxisPressed (bool pressed) |
Set axis pressed simulation state. More... | |
void | setSourceIndex (int index) |
Set source index or -1 if not set. More... | |
void | setSystem (InputEventSource system) |
Set system or null if not set. More... | |
Public Attributes | |
Command | pCommand |
String | pDeviceID |
int | pDeviceIndex |
bool | pInverseAxis |
bool | pSimulateAxisPressed |
String | pSourceID |
int | pSourceIndex |
InputEventSource | pSystem |
Binding of command to input event on device.
Bindings are identified by device and either axis or button identifier. For quicker access the device and button index are used.
bool Dragengine.Commands.Binding.equals | ( | Object | other | ) |
Bindings are equal.
Command Dragengine.Commands.Binding.getCommand | ( | ) |
Bound command.
String Dragengine.Commands.Binding.getDeviceID | ( | ) |
Input device identifier.
int Dragengine.Commands.Binding.getDeviceIndex | ( | ) |
Device index or -1 if not set.
InputDevice Dragengine.Commands.Binding.getInputDevice | ( | ) |
Device or null if not set.
InputDeviceAxis Dragengine.Commands.Binding.getInputDeviceAxis | ( | ) |
Device axis or null if not set.
InputDeviceButton Dragengine.Commands.Binding.getInputDeviceButton | ( | ) |
Device button or null if not set.
InputDeviceFeedback Dragengine.Commands.Binding.getInputDeviceFeedback | ( | ) |
Device feedback or null if not set.
bool Dragengine.Commands.Binding.getInverseAxis | ( | ) |
Inverse axis.
bool Dragengine.Commands.Binding.getSimulateAxisPressed | ( | ) |
Axis pressed simulation state.
String Dragengine.Commands.Binding.getSourceID | ( | ) |
Axis or button identifier.
int Dragengine.Commands.Binding.getSourceIndex | ( | ) |
Source index or -1 if not set.
InputEventSource Dragengine.Commands.Binding.getSystem | ( | ) |
System or null if not set.
Create copy of binding with different command.
Binding Dragengine.Commands.Binding.new | ( | String | deviceID, |
String | sourceID, | ||
Command | command, | ||
bool | inverseAxis | ||
) |
Create binding.
void Dragengine.Commands.Binding.setDeviceIndex | ( | int | index | ) |
Set device index or -1 if not set.
void Dragengine.Commands.Binding.setSimulateAxisPressed | ( | bool | pressed | ) |
Set axis pressed simulation state.
void Dragengine.Commands.Binding.setSourceIndex | ( | int | index | ) |
Set source index or -1 if not set.
void Dragengine.Commands.Binding.setSystem | ( | InputEventSource | system | ) |
Set system or null if not set.
Command Dragengine.Commands.Binding.pCommand |
String Dragengine.Commands.Binding.pDeviceID |
int Dragengine.Commands.Binding.pDeviceIndex |
bool Dragengine.Commands.Binding.pInverseAxis |
bool Dragengine.Commands.Binding.pSimulateAxisPressed |
String Dragengine.Commands.Binding.pSourceID |
int Dragengine.Commands.Binding.pSourceIndex |
InputEventSource Dragengine.Commands.Binding.pSystem |