|
static int | getDeviceCount () |
| Number of input devices. More...
|
|
static InputDevice | getDeviceAt (int index) |
| Information for input device at index. More...
|
|
static int | indexOfDeviceWithID (String id) |
| Index of device with identifier or -1 if absent. More...
|
|
static int | indexOfButtonWithID (int device, String id) |
| Index of button with identifier on device at index or -1 if absent. More...
|
|
static int | indexOfAxisWithID (int device, String id) |
| Index of axis with identifier on device at index or -1 if absent. More...
|
|
static int | indexOfFeedbackWithID (int device, String id) |
| Index of feedback with identifier on device at index or -1 if absent. More...
|
|
static bool | getButtonPressed (int device, int button) |
| Button at index on device at index is pressed down. More...
|
|
static bool | getButtonTouched (int device, int button) |
| Button at index on device at index is touched. More...
|
|
static float | getAxisValue (int device, int axis) |
| Value of axis at index on device at index. More...
|
|
static float | getFeedbackValue (int device, int feedback) |
| Value of feedback at index on device at index. More...
|
|
static void | setFeedbackValue (int device, int feedback, float value) |
| Set value of feedback at index on device at index. More...
|
|
static int | buttonMatchingKeyCode (int device, int keyCode) |
| Index of button best matching key code or -1 if not found. More...
|
|
static int | buttonMatchingKeyChar (int device, int character) |
| Index of button best matching character or -1 if not found. More...
|
|
int | buttonMatchingKeyCode (int device, int keyCode, InputEventKeyLocation location) |
| Index of button best matching key code or -1 if not found. More...
|
|
int | buttonMatchingKeyChar (int device, int character, InputEventKeyLocation location) |
| Index of button best matching character or -1 if not found. More...
|
|
Input system.
This is a native class. This is a pure static class. The class can not be instantiated
static int Dragengine.InputSystem.buttonMatchingKeyChar |
( |
int |
device, |
|
|
int |
character |
|
) |
| |
|
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.
static int Dragengine.InputSystem.buttonMatchingKeyCode |
( |
int |
device, |
|
|
int |
keyCode |
|
) |
| |
|
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.