|
Drag[en]gine Script Module DragonScript 1.32.1
|
Input device component. More...
Public Member Functions | |
Management | |
| InputDevice | getInputDevice () |
| Owner input device. | |
| int | getComponentIndex () |
| Component index. | |
Components | |
| String | getID () |
| Component identifier. | |
| String | getName () |
| Display name. | |
| InputDeviceComponentType | getType () |
| Component type. | |
| Image | getDisplayImage () |
| Image to represent the component in 2D user interfaces or NULL if not set. | |
| int | getDisplayIconCount () |
| Count of icons representing the component in bindings. | |
| Image | getDisplayIconAt (int index) |
| Icon at index representing the component in bindings. | |
| Image | getLargestDisplayIconX (int maxWidth) |
| Largest icon not exceeding width representing the device in bindings. | |
| Image | getLargestDisplayIconY (int maxHeight) |
| Largest icon not exceeding height representing the device in bindings. | |
| String | getDisplayText () |
| Text to display centered across display image or icon. | |
Input device component.
Wraps a input device component by component index.
Components group buttons, axes and feedbacks into a single unit. For example a joystick on a gamepad typically composes of 2 axes and optionally buttons (for example press down) and feedbacks (rumbling). Using components enables the user to relate these input features.
This is a native class.
| int Dragengine.InputDeviceComponent.getComponentIndex | ( | ) |
Component index.
| Image Dragengine.InputDeviceComponent.getDisplayIconAt | ( | int | index | ) |
Icon at index representing the component in bindings.
Icon is of square size and typically has a size of 16, 24, 32 or 64.
| int Dragengine.InputDeviceComponent.getDisplayIconCount | ( | ) |
Count of icons representing the component in bindings.
| Image Dragengine.InputDeviceComponent.getDisplayImage | ( | ) |
Image to represent the component in 2D user interfaces or NULL if not set.
Large image of 128 pixels squared or larger.
| String Dragengine.InputDeviceComponent.getDisplayText | ( | ) |
Text to display centered across display image or icon.
| String Dragengine.InputDeviceComponent.getID | ( | ) |
Component identifier.
Unique identifier for the component identifying it inside the parent device. The prefix is a normalized string that contains only letters, numbers and underscores. It is suitable to be combined with the device identifier to store them in config files as key bindings.
| InputDevice Dragengine.InputDeviceComponent.getInputDevice | ( | ) |
Owner input device.
| Image Dragengine.InputDeviceComponent.getLargestDisplayIconX | ( | int | maxWidth | ) |
Largest icon not exceeding width representing the device in bindings.
Icon typically has a size of 16, 24, 32 or 64.
| Image Dragengine.InputDeviceComponent.getLargestDisplayIconY | ( | int | maxHeight | ) |
Largest icon not exceeding height representing the device in bindings.
Icon typically has a size of 16, 24, 32 or 64.
| String Dragengine.InputDeviceComponent.getName | ( | ) |
Display name.
Dispaly name is human readable like for example 'Component #1'. The name is unique but not guaranteed to stay the same across restarting the input module or game engine.
| InputDeviceComponentType Dragengine.InputDeviceComponent.getType | ( | ) |
Component type.