|
Drag[en]gine Script Module DragonScript 1.35
|
Input system. More...
Static Public Member Functions | |
Management | |
| static bool | getCaptureInputDevices () |
| Input devices are captured by the active input module if supported. | |
| static void | setCaptureInputDevices (bool captureInputDevices) |
| Set if input devices are captured by the active input module if supported. | |
Parameters | |
| static int | getParameterCount () |
| Number of parameters available. | |
| static ModuleParameter | getParameterInfo (int index) |
| Parameter information. | |
| static ModuleParameter | getParameterInfo (String name) |
| Named parameter information or null if not found. | |
| static String | getParameterValue (String name) |
| Parameter value. | |
| static void | setParameterValue (String name, String value) |
| Set named parameter value. | |
| static String | sendCommand (String command) |
| Send command. | |
Input devices | |
| static int | getDeviceCount () |
| Number of input devices. | |
| static InputDevice | getDeviceAt (int index) |
| Information for input device at index. | |
| static int | indexOfDeviceWithID (String id) |
| Index of device with identifier or -1 if absent. | |
| static int | indexOfButtonWithID (int device, String id) |
| Index of button with identifier on device at index or -1 if absent. | |
| static int | indexOfAxisWithID (int device, String id) |
| Index of axis with identifier on device at index or -1 if absent. | |
| static int | indexOfFeedbackWithID (int device, String id) |
| Index of feedback with identifier on device at index or -1 if absent. | |
| static bool | getButtonPressed (int device, int button) |
| Button at index on device at index is pressed down. | |
| static bool | getButtonTouched (int device, int button) |
| Button at index on device at index is touched. | |
| static bool | getButtonNear (int device, int button) |
| User finger is near button at index on device at index. | |
| static float | getAxisValue (int device, int axis) |
| Value of axis at index on device at index. | |
| static float | getFeedbackValue (int device, int feedback) |
| Value of feedback at index on device at index. | |
| static void | setFeedbackValue (int device, int feedback, float value) |
| Set value of feedback at index on device at index. | |
| static int | buttonMatchingKeyCode (int device, int keyCode) |
| Index of button best matching key code or -1 if not found. | |
| static int | buttonMatchingKeyChar (int device, int character) |
| Index of button best matching character or -1 if not found. | |
| int | buttonMatchingKeyCode (int device, int keyCode, InputEventKeyLocation location) |
| Index of button best matching key code or -1 if not found. | |
| int | buttonMatchingKeyChar (int device, int character, InputEventKeyLocation location) |
| Index of button best matching character or -1 if not found. | |
Input system.
This is a native class. This is a pure static class. The class can not be instantiated
|
static |
Index of button best matching character or -1 if not found.
If more than one button matches the character the input module decides which button is the more likely choice. Once decided the input module is required to return the same button for the same character in subsequent queries unless a deInputEvent::eeDeviceParamsChanged event is issued.
Keys usually have different characters depending on the state of modifier keys. The input module matches character case insensitive to increase the chance to find a match. If mutliple keys match the character but under different modifier states the input module has to first select the key matching case sensitive then the key requiring less modifiers.
Can be used for example to locate keyboard keys to create default binding layouts without the user pressing input keys.
References buttonMatchingKeyCode().
Referenced by getParameterCount(), and sendCommand().
| int Dragengine.InputSystem.buttonMatchingKeyChar | ( | int | device, |
| int | character, | ||
| InputEventKeyLocation | location ) |
Index of button best matching character or -1 if not found.
Same as buttonMatchingKeyChar(int,int) but allows to distinguish between multiple keys of the same type, for example left and right shift key.
|
static |
Index of button best matching key code or -1 if not found.
If more than one button matches the key code the input module decides which button is the more likely choice. Once decided the input module is required to return the same button for the same key code in subsequent queries unless a deInputEvent::eeDeviceParamsChanged event is issued.
Can be used for example to locate keyboard keys to create default binding layouts without the user pressing input keys.
References getAxisValue(), getFeedbackValue(), and setFeedbackValue().
Referenced by buttonMatchingKeyChar(), and getParameterInfo().
| int Dragengine.InputSystem.buttonMatchingKeyCode | ( | int | device, |
| int | keyCode, | ||
| InputEventKeyLocation | location ) |
Index of button best matching key code or -1 if not found.
Same as buttonMatchingKeyChar(int,int) but allows to distinguish between multiple keys of the same type, for example left and right shift key.
|
static |
Value of axis at index on device at index.
Referenced by buttonMatchingKeyCode().
|
static |
User finger is near button at index on device at index.
References indexOfFeedbackWithID().
Referenced by setFeedbackValue().
|
static |
Button at index on device at index is pressed down.
References indexOfButtonWithID().
Referenced by getFeedbackValue().
|
static |
Button at index on device at index is touched.
References indexOfAxisWithID().
Referenced by setFeedbackValue().
|
static |
Input devices are captured by the active input module if supported.
References getCaptureInputDevices().
Referenced by getCaptureInputDevices().
|
static |
Information for input device at index.
References getDeviceCount().
Referenced by indexOfDeviceWithID().
|
static |
Number of input devices.
Referenced by getDeviceAt().
|
static |
Value of feedback at index on device at index.
References getButtonPressed().
Referenced by buttonMatchingKeyCode().
|
static |
|
static |
Parameter information.
| EOutOfBoundary | index less than 0 or greater than or equal to getParameterCount(). |
Referenced by sendCommand().
|
static |
Named parameter information or null if not found.
References buttonMatchingKeyCode().
|
static |
Parameter value.
| EInvalidParam | Parameter with name not found. |
Referenced by sendCommand().
|
static |
Index of axis with identifier on device at index or -1 if absent.
References indexOfDeviceWithID().
Referenced by getButtonTouched().
|
static |
Index of button with identifier on device at index or -1 if absent.
Referenced by getButtonPressed().
|
static |
Index of device with identifier or -1 if absent.
References getDeviceAt().
Referenced by indexOfAxisWithID().
|
static |
Index of feedback with identifier on device at index or -1 if absent.
Referenced by getButtonNear().
|
static |
Send command.
References buttonMatchingKeyChar(), getParameterCount(), getParameterInfo(), getParameterValue(), sendCommand(), and setParameterValue().
Referenced by sendCommand().
|
static |
Set if input devices are captured by the active input module if supported.
References setCaptureInputDevices().
Referenced by setCaptureInputDevices().
|
static |
Set value of feedback at index on device at index.
References getButtonNear(), and getButtonTouched().
Referenced by buttonMatchingKeyCode().
|
static |
Set named parameter value.
| EInvalidParam | Parameter with name not found. |
Referenced by sendCommand().