|
Drag[en]gine Script Module DragonScript 1.35
|
Generate default bindings. More...
Public Member Functions | |
Constructors | |
| DefaultBindingHelper | new () |
| Create default binding helper using BaseGameApp. | |
| DefaultBindingHelper | new (BindingManager bindingManager, CommandManager commandManager) |
| Create default binding helper for binding manager. | |
General | |
| BindingManager | getBindingManager () |
| Binding manager to update once finished. | |
| CommandManager | getCommandManager () |
| Command manager to use for bindings. | |
| void | reset () |
| Remove all bindings. | |
| void | updateBindingManager (bool clear) |
| Update binding manager with found bindings. | |
| bool | mouseBindWheel (int wheel, String command) |
| Bind command to mouse wheel. | |
| bool | mouseBindWheel (int wheel, String up, String down) |
| Bind commands to mouse wheel. | |
| bool | mouseBindLMR (String left, String middle, String right) |
| Bind command to left, right and middle mouse buttons. | |
| bool | mouseBindAux (int number, String command) |
| Bind command to auxiliary mouse button. | |
Keyboard Input Device | |
| bool | hasKeyboard () |
| Keyboard device is present. | |
| InputDevice | getKeyboard () |
| First keyboard device or null. | |
| void | keyboardClear () |
| Remove all keyboard bindings. | |
| bool | keyboardBindKeyCode (int keyCode, String command) |
| Bind command to keyboard key matching key code. | |
| bool | keyboardBindKeyCode (int keyCode, InputEventKeyLocation location, String command) |
| Bind command to keyboard key matching key code. | |
| bool | keyboardBindCharacter (int character, String command) |
| Bind command to keyboard key matching character. | |
| bool | keyboardBindCharacter (int character, InputEventKeyLocation location, String command) |
| Bind command to keyboard key matching character. | |
Gamepad Binding | |
| bool | hasGamepad () |
| Gamepad device is present. | |
| InputDevice | getGamepad () |
| First gamepad device or null. | |
| void | gamepadClear () |
| Remove all gamepad bindings. | |
| bool | gamepadBindStick (int stick, String horizontal, String vertical) |
| Bind command to gamepad stick. | |
| bool | gamepadBindStick (InputDevice gamepad, int stick, String horizontal, String vertical) |
| Bind command to gamepad stick. | |
| bool | gamepadBindStick (int stick, String left, String right, String up, String down) |
| Bind command to gamepad stick. | |
| bool | gamepadBindStick (InputDevice gamepad, int stick, String left, String right, String up, String down) |
| Bind command to gamepad stick. | |
| bool | gamepadBindHat (int hat, String horizontal, String vertical) |
| Bind command to gamepad hat or directional pad. | |
| bool | gamepadBindHat (InputDevice gamepad, int hat, String horizontal, String vertical) |
| Bind command to gamepad hat or directional pad. | |
| bool | gamepadBindHat (int hat, String left, String right, String up, String down) |
| Bind command to gamepad hat or directional pad. | |
| bool | gamepadBindHat (InputDevice gamepad, int hat, String left, String right, String up, String down) |
| Bind command to gamepad hat or directional pad. | |
| bool | gamepadBindTrigger (int trigger, String command) |
| Bind command to gamepad trigger. | |
| bool | gamepadBindTrigger (InputDevice gamepad, int trigger, String command) |
| Bind command to gamepad trigger. | |
| bool | gamepadBindTrigger (int trigger, String pull, String release) |
| Bind command to gamepad trigger. | |
| bool | gamepadBindTrigger (InputDevice gamepad, int trigger, String pull, String release) |
| Bind command to gamepad trigger. | |
| bool | gamepadBindButton (int button, String command) |
| Bind command to gamepad button. | |
| bool | gamepadBindButton (InputDevice gamepad, int button, String command) |
| Bind command to gamepad button. | |
| bool | gamepadBindButton (int button, InputDeviceButtonType type, String command) |
| Bind command to gamepad button. | |
| bool | gamepadBindButton (InputDevice gamepad, int button, InputDeviceButtonType type, String command) |
| Bind command to gamepad button. | |
| bool | gamepadBindAxis (int axis, String command) |
| Bind command to gamepad axis. | |
| bool | gamepadBindAxis (InputDevice gamepad, int axis, String command) |
| Bind command to gamepad axis. | |
VR Controller Binding | |
| bool | hasVRHand (bool rightHand) |
| One or more VR hand controller device is present. | |
| InputDevice | getVRHand (bool rightHand) |
| First VR hand controller device or null. | |
| Array | getAllVRHands (bool rightHand) |
| All VR hand controller devices as Array of InputDevice. | |
| bool | bindButton (InputDevice device, int button, String command) |
| Bind command to button on device. | |
| bool | bindButton (InputDevice device, InputDeviceButtonType type, int button, String command) |
| Bind command to button on device. | |
| bool | bindTrigger (InputDevice device, InputDeviceAxisType type, int trigger, String name) |
| Bind command to trigger. | |
| bool | bindTrigger (InputDevice device, InputDeviceAxisType type, int trigger, String pull, String release) |
| Bind command to trigger. | |
| bool | bindStick (InputDevice device, InputDeviceAxisType type, int stick, String horizontal, String vertical, bool inverse) |
| Bind command to joystick. | |
| bool | bindStick (InputDevice device, InputDeviceAxisType type, int stick, String horizontal, String vertical, bool inverseHorizontal, bool inverseVertical) |
| Bind command to joystick. | |
| bool | bindStick (InputDevice device, InputDeviceAxisType type, int stick, String left, String right, String up, String down, bool inverse) |
| Bind command to joystick. | |
| bool | bindStick (InputDevice device, InputDeviceAxisType type, int stick, String left, String right, String up, String down, bool inverseHorizontal, bool inverseVertical) |
| Bind command to joystick. | |
| void | removeAllDeviceBindings (InputDevice device) |
| Remove all bindings for device. | |
Public Attributes | |
| Array | pAxisBindings |
| BindingManager | pBindingManager |
| CommandManager | pCommandManager |
| InputDevice | pMouse |
Generate default bindings.
Helper for games running for the first time requiring a useful initial binding configuration the user can then adjust. The problem with initial binding configuration is that the user does not tap the keys for bindings but the game has to add some reasonable bindings for input devices it has little knowledge about. This class provides a simple way to achieve this goal. It uses the buttonMatchingKeyCode and buttonMatchingKeyChar methods to find suitable bindings.
Upon creating an instance of DefaultBindingHelper the present input devices are examine for typical candidates. The first found mouse, keyboard and gamepad type input device is stored. The user can then query the devices for some parameters for example how many buttons and axes a gamepad has if present. For each device the user can then add a binding using key code and/or key char. The first key matching the parameters is added. If required the user can examine the return value to learn if the binding has been assigned or not. This can be used to try a fallback assignment or trying a different layout altogether.
All changes are recorded in the DefaultBindingHelper instance. Once suitable the user can apply the changes to the binding manager.
| bool Dragengine.Commands.DefaultBindingHelper.bindButton | ( | InputDevice | device, |
| InputDeviceButtonType | type, | ||
| int | button, | ||
| String | command ) |
Bind command to button on device.
| device | Device containing axis. |
| button | Index of button to bind. |
| command | Name of command to bind. |
References keyboardBindCharacter().
| bool Dragengine.Commands.DefaultBindingHelper.bindButton | ( | InputDevice | device, |
| int | button, | ||
| String | command ) |
Bind command to button on device.
| device | Device containing axis. |
| button | Index of button to bind. |
| command | Name of command to bind. |
Referenced by gamepadBindHat(), gamepadBindTrigger(), and removeAllDeviceBindings().
| bool Dragengine.Commands.DefaultBindingHelper.bindStick | ( | InputDevice | device, |
| InputDeviceAxisType | type, | ||
| int | stick, | ||
| String | horizontal, | ||
| String | vertical, | ||
| bool | inverse ) |
Bind command to joystick.
| type | Type of stick |
| stick | Number of stick of given type. |
| horizontal | Name of command to bind to horizontal movement or null. |
| vertical | Name of command to bind to vertical movement or null. |
| inverse | True to invert both axes. |
References gamepadClear(), getGamepad(), and removeAllDeviceBindings().
Referenced by bindStick(), and removeAllDeviceBindings().
| bool Dragengine.Commands.DefaultBindingHelper.bindStick | ( | InputDevice | device, |
| InputDeviceAxisType | type, | ||
| int | stick, | ||
| String | horizontal, | ||
| String | vertical, | ||
| bool | inverseHorizontal, | ||
| bool | inverseVertical ) |
Bind command to joystick.
| type | Type of stick |
| stick | Number of stick of given type. |
| horizontal | Name of command to bind to horizontal movement or null. |
| vertical | Name of command to bind to vertical movement or null. |
| inverseHorizontal | True to invert horizontal axis. |
| inverseVertical | True to invert vertical axis. |
| bool Dragengine.Commands.DefaultBindingHelper.bindStick | ( | InputDevice | device, |
| InputDeviceAxisType | type, | ||
| int | stick, | ||
| String | left, | ||
| String | right, | ||
| String | up, | ||
| String | down, | ||
| bool | inverse ) |
Bind command to joystick.
| type | Type of stick. |
| stick | Number of stick of given type. |
| left | Name of command to bind to left movement or null. |
| right | Name of command to bind to right movement or null. |
| up | Name of command to bind to up movement or null. |
| down | Name of command to bind to down movement or null. |
| inverse | True to invert both axes. |
References gamepadBindStick().
| bool Dragengine.Commands.DefaultBindingHelper.bindStick | ( | InputDevice | device, |
| InputDeviceAxisType | type, | ||
| int | stick, | ||
| String | left, | ||
| String | right, | ||
| String | up, | ||
| String | down, | ||
| bool | inverseHorizontal, | ||
| bool | inverseVertical ) |
Bind command to joystick.
| type | Type of stick. |
| stick | Number of stick of given type. |
| left | Name of command to bind to left movement or null. |
| right | Name of command to bind to right movement or null. |
| up | Name of command to bind to up movement or null. |
| down | Name of command to bind to down movement or null. |
| inverseHorizonal | True to invert horizontal axis. |
| inverseVertical | True to invert vertical axis. |
References bindStick(), and gamepadBindStick().
| bool Dragengine.Commands.DefaultBindingHelper.bindTrigger | ( | InputDevice | device, |
| InputDeviceAxisType | type, | ||
| int | trigger, | ||
| String | name ) |
Bind command to trigger.
| Device | device. |
| type | Type of trigger. |
| trigger | Number of trigger of given type. |
| name | Name of command to bind to horizontal movement or null. |
References pCommandManager.
Referenced by gamepadBindHat(), gamepadBindHat(), and removeAllDeviceBindings().
| bool Dragengine.Commands.DefaultBindingHelper.bindTrigger | ( | InputDevice | device, |
| InputDeviceAxisType | type, | ||
| int | trigger, | ||
| String | pull, | ||
| String | release ) |
Bind command to trigger.
| Device | device. |
| type | Type of trigger. |
| trigger | Number of trigger of given type. |
| pull | Name of command to bind to pull movement or null. |
| release | Name of command to bind to release movement or null. |
References hasGamepad().
| bool Dragengine.Commands.DefaultBindingHelper.gamepadBindAxis | ( | InputDevice | gamepad, |
| int | axis, | ||
| String | command ) |
Bind command to gamepad axis.
| axis | Number of axis starting with 0 for the first. |
| command | Name of command to bind to horizontal movement or null. |
References pCommandManager.
| bool Dragengine.Commands.DefaultBindingHelper.gamepadBindAxis | ( | int | axis, |
| String | command ) |
Bind command to gamepad axis.
| axis | Number of axis starting with 0 for the first. |
| command | Name of command to bind to horizontal movement or null. |
References keyboardBindKeyCode().
Referenced by removeAllDeviceBindings().
| bool Dragengine.Commands.DefaultBindingHelper.gamepadBindButton | ( | InputDevice | gamepad, |
| int | button, | ||
| InputDeviceButtonType | type, | ||
| String | command ) |
Bind command to gamepad button.
| button | Number of button starting with 0 for the first. |
| type | Type of button. |
| command | Name of command to bind to button or null. |
| bool Dragengine.Commands.DefaultBindingHelper.gamepadBindButton | ( | InputDevice | gamepad, |
| int | button, | ||
| String | command ) |
Bind command to gamepad button.
| button | Number of button starting with 0 for the first. |
| command | Name of command to bind to button or null. |
References keyboardBindKeyCode().
| bool Dragengine.Commands.DefaultBindingHelper.gamepadBindButton | ( | int | button, |
| InputDeviceButtonType | type, | ||
| String | command ) |
Bind command to gamepad button.
| button | Number of button starting with 0 for the first. |
| type | Type of button. |
| command | Name of command to bind to button or null. |
References pCommandManager.
| bool Dragengine.Commands.DefaultBindingHelper.gamepadBindButton | ( | int | button, |
| String | command ) |
Bind command to gamepad button.
| button | Number of button starting with 0 for the first. |
| command | Name of command to bind to button or null. |
References removeAllDeviceBindings().
Referenced by removeAllDeviceBindings().
| bool Dragengine.Commands.DefaultBindingHelper.gamepadBindHat | ( | InputDevice | gamepad, |
| int | hat, | ||
| String | horizontal, | ||
| String | vertical ) |
Bind command to gamepad hat or directional pad.
| hat | Number of hat starting with 0 for the first. |
| horizontal | Name of command to bind to left/right press or null. |
| vertical | Name of command to bind to up/down press or null. |
References bindTrigger(), mouseBindWheel(), and pMouse.
| bool Dragengine.Commands.DefaultBindingHelper.gamepadBindHat | ( | InputDevice | gamepad, |
| int | hat, | ||
| String | left, | ||
| String | right, | ||
| String | up, | ||
| String | down ) |
Bind command to gamepad hat or directional pad.
| hat | Number of hat starting with 0 for the first. |
| left | Name of command to bind to left press or null. |
| right | Name of command to bind to right press or null. |
| up | Name of command to bind to up press or null. |
| down | Name of command to bind to down press or null. |
References bindButton(), and pMouse.
| bool Dragengine.Commands.DefaultBindingHelper.gamepadBindHat | ( | int | hat, |
| String | horizontal, | ||
| String | vertical ) |
Bind command to gamepad hat or directional pad.
| hat | Number of hat starting with 0 for the first. |
| horizontal | Name of command to bind to left/right press or null. |
| vertical | Name of command to bind to up/down press or null. |
References bindTrigger(), mouseBindWheel(), and pMouse.
Referenced by removeAllDeviceBindings().
| bool Dragengine.Commands.DefaultBindingHelper.gamepadBindHat | ( | int | hat, |
| String | left, | ||
| String | right, | ||
| String | up, | ||
| String | down ) |
Bind command to gamepad hat or directional pad.
| hat | Number of hat starting with 0 for the first. |
| left | Name of command to bind to left press or null. |
| right | Name of command to bind to right press or null. |
| up | Name of command to bind to up press or null. |
| down | Name of command to bind to down press or null. |
References mouseBindLMR(), and pMouse.
| bool Dragengine.Commands.DefaultBindingHelper.gamepadBindStick | ( | InputDevice | gamepad, |
| int | stick, | ||
| String | horizontal, | ||
| String | vertical ) |
Bind command to gamepad stick.
| stick | Number of stick starting with 0 for the first. |
| horizontal | Name of command to bind to horizontal movement or null. |
| vertical | Name of command to bind to vertical movement or null. |
References pCommandManager, and pMouse.
| bool Dragengine.Commands.DefaultBindingHelper.gamepadBindStick | ( | InputDevice | gamepad, |
| int | stick, | ||
| String | left, | ||
| String | right, | ||
| String | up, | ||
| String | down ) |
Bind command to gamepad stick.
| stick | Number of stick starting with 0 for the first. |
| left | Name of command to bind to left movement or null. |
| right | Name of command to bind to right movement or null. |
| up | Name of command to bind to up movement or null. |
| down | Name of command to bind to down movement or null. |
| bool Dragengine.Commands.DefaultBindingHelper.gamepadBindStick | ( | int | stick, |
| String | horizontal, | ||
| String | vertical ) |
Bind command to gamepad stick.
| stick | Number of stick starting with 0 for the first. |
| horizontal | Name of command to bind to horizontal movement or null. |
| vertical | Name of command to bind to vertical movement or null. |
References pMouse.
Referenced by bindStick(), bindStick(), and removeAllDeviceBindings().
| bool Dragengine.Commands.DefaultBindingHelper.gamepadBindStick | ( | int | stick, |
| String | left, | ||
| String | right, | ||
| String | up, | ||
| String | down ) |
Bind command to gamepad stick.
| stick | Number of stick starting with 0 for the first. |
| left | Name of command to bind to left movement or null. |
| right | Name of command to bind to right movement or null. |
| up | Name of command to bind to up movement or null. |
| down | Name of command to bind to down movement or null. |
References pCommandManager, and pMouse.
| bool Dragengine.Commands.DefaultBindingHelper.gamepadBindTrigger | ( | InputDevice | gamepad, |
| int | trigger, | ||
| String | command ) |
Bind command to gamepad trigger.
| trigger | Number of trigger starting with 0 for the first. |
| command | Name of command to bind to horizontal movement or null. |
References bindButton(), mouseBindAux(), and pMouse.
| bool Dragengine.Commands.DefaultBindingHelper.gamepadBindTrigger | ( | InputDevice | gamepad, |
| int | trigger, | ||
| String | pull, | ||
| String | release ) |
Bind command to gamepad trigger.
| trigger | Number of trigger starting with 0 for the first. |
| pull | Name of command to bind to pull or null. |
| release | Name of command to bind to release or null. |
References getKeyboard(), and keyboardClear().
| bool Dragengine.Commands.DefaultBindingHelper.gamepadBindTrigger | ( | int | trigger, |
| String | command ) |
Bind command to gamepad trigger.
| trigger | Number of trigger starting with 0 for the first. |
| command | Name of command to bind to horizontal movement or null. |
Referenced by removeAllDeviceBindings().
| bool Dragengine.Commands.DefaultBindingHelper.gamepadBindTrigger | ( | int | trigger, |
| String | pull, | ||
| String | release ) |
Bind command to gamepad trigger.
| trigger | Number of trigger starting with 0 for the first. |
| pull | Name of command to bind to pull or null. |
| release | Name of command to bind to release or null. |
References hasKeyboard().
| void Dragengine.Commands.DefaultBindingHelper.gamepadClear | ( | ) |
Remove all gamepad bindings.
Referenced by bindStick().
| Array Dragengine.Commands.DefaultBindingHelper.getAllVRHands | ( | bool | rightHand | ) |
All VR hand controller devices as Array of InputDevice.
| rightHand | True for right hand controller otherwise left hand controller. |
References pCommandManager.
Referenced by removeAllDeviceBindings().
| BindingManager Dragengine.Commands.DefaultBindingHelper.getBindingManager | ( | ) |
Binding manager to update once finished.
References pBindingManager, and pCommandManager.
Referenced by updateBindingManager().
| CommandManager Dragengine.Commands.DefaultBindingHelper.getCommandManager | ( | ) |
Command manager to use for bindings.
References pAxisBindings.
Referenced by updateBindingManager().
| InputDevice Dragengine.Commands.DefaultBindingHelper.getGamepad | ( | ) |
First gamepad device or null.
Referenced by bindStick().
| InputDevice Dragengine.Commands.DefaultBindingHelper.getKeyboard | ( | ) |
First keyboard device or null.
References updateBindingManager().
Referenced by gamepadBindTrigger().
| InputDevice Dragengine.Commands.DefaultBindingHelper.getVRHand | ( | bool | rightHand | ) |
First VR hand controller device or null.
| rightHand | True for right hand controller otherwise left hand controller. |
References keyboardBindCharacter().
Referenced by removeAllDeviceBindings().
| bool Dragengine.Commands.DefaultBindingHelper.hasGamepad | ( | ) |
Gamepad device is present.
References pMouse, and removeAllDeviceBindings().
Referenced by bindTrigger().
| bool Dragengine.Commands.DefaultBindingHelper.hasKeyboard | ( | ) |
Keyboard device is present.
References pMouse, and updateBindingManager().
Referenced by gamepadBindTrigger().
| bool Dragengine.Commands.DefaultBindingHelper.hasVRHand | ( | bool | rightHand | ) |
One or more VR hand controller device is present.
| rightHand | True to check right hand controller otherwise left hand controller. |
Referenced by removeAllDeviceBindings().
| bool Dragengine.Commands.DefaultBindingHelper.keyboardBindCharacter | ( | int | character, |
| InputEventKeyLocation | location, | ||
| String | command ) |
Bind command to keyboard key matching character.
Tries to find key matching character. If found binding is added. Supports distinguishing between duplicate keys in different locations like left and right shift key.
| character | Character to find. |
| location | Key location. |
| command | Name of command to bind. |
References pMouse.
| bool Dragengine.Commands.DefaultBindingHelper.keyboardBindCharacter | ( | int | character, |
| String | command ) |
Bind command to keyboard key matching character.
Tries to find key matching character. If found binding is added.
| character | Character to find. |
| command | Name of command to bind. |
References pMouse.
Referenced by bindButton(), and getVRHand().
| bool Dragengine.Commands.DefaultBindingHelper.keyboardBindKeyCode | ( | int | keyCode, |
| InputEventKeyLocation | location, | ||
| String | command ) |
Bind command to keyboard key matching key code.
Tries to find key matching key code. If found binding is added. Supports distinguishing between duplicate keys in different locations like left and right shift key.
| keyCode | Key code to find. |
| location | Key location. |
| command | Name of command to bind. |
References pBindingManager.
| bool Dragengine.Commands.DefaultBindingHelper.keyboardBindKeyCode | ( | int | keyCode, |
| String | command ) |
Bind command to keyboard key matching key code.
Tries to find key matching key code. If found binding is added.
| keyCode | Key code to find. |
| command | Name of command to bind. |
References pAxisBindings, pBindingManager, and updateBindingManager().
Referenced by gamepadBindAxis(), and gamepadBindButton().
| void Dragengine.Commands.DefaultBindingHelper.keyboardClear | ( | ) |
Remove all keyboard bindings.
References updateBindingManager().
Referenced by gamepadBindTrigger().
| bool Dragengine.Commands.DefaultBindingHelper.mouseBindAux | ( | int | number, |
| String | command ) |
Bind command to auxiliary mouse button.
These are buttons 4 upwards if present. Typically 4 is "browse forward" and 5 is "browse backward" but gaming mice can have any number of additional buttons with different usage. Auxiliary buttons are usually not present and tend to be unsuitable for an initial binding configuration.
| number | Number of auxiliary button starting with 0 for the first. |
| command | Name of command to bind to mouse button or null. |
References pBindingManager.
Referenced by gamepadBindTrigger().
| bool Dragengine.Commands.DefaultBindingHelper.mouseBindLMR | ( | String | left, |
| String | middle, | ||
| String | right ) |
Bind command to left, right and middle mouse buttons.
| left | Name of command to bind to left mouse button or null. |
| middle | Name of command to bind to middle mouse button or null. |
| right | Name of command to bind to right mouse button or null. |
References pAxisBindings, and pBindingManager.
Referenced by gamepadBindHat().
| bool Dragengine.Commands.DefaultBindingHelper.mouseBindWheel | ( | int | wheel, |
| String | command ) |
Bind command to mouse wheel.
| wheel | Number of wheel starting with 0 for the first wheel. |
| command | Name of command to bind to mouse wheel or null. |
References pAxisBindings, and reset().
Referenced by gamepadBindHat(), and gamepadBindHat().
| bool Dragengine.Commands.DefaultBindingHelper.mouseBindWheel | ( | int | wheel, |
| String | up, | ||
| String | down ) |
Bind commands to mouse wheel.
| wheel | Number of wheel starting with 0 for the first wheel. |
| up | Name of command to bind to up mouse wheel movement or null. |
| down | Name of command to bind to down mouse wheel movement or null. |
References pBindingManager, and updateBindingManager().
| DefaultBindingHelper Dragengine.Commands.DefaultBindingHelper.new | ( | ) |
| DefaultBindingHelper Dragengine.Commands.DefaultBindingHelper.new | ( | BindingManager | bindingManager, |
| CommandManager | commandManager ) |
| void Dragengine.Commands.DefaultBindingHelper.removeAllDeviceBindings | ( | InputDevice | device | ) |
Remove all bindings for device.
References bindButton(), bindStick(), bindTrigger(), gamepadBindAxis(), gamepadBindButton(), gamepadBindHat(), gamepadBindStick(), gamepadBindTrigger(), getAllVRHands(), getVRHand(), hasVRHand(), pAxisBindings, pBindingManager, pCommandManager, pMouse, and removeAllDeviceBindings().
Referenced by bindStick(), gamepadBindButton(), hasGamepad(), and removeAllDeviceBindings().
| void Dragengine.Commands.DefaultBindingHelper.reset | ( | ) |
Remove all bindings.
Referenced by mouseBindWheel().
| void Dragengine.Commands.DefaultBindingHelper.updateBindingManager | ( | bool | clear | ) |
Update binding manager with found bindings.
| clear | Removes first all bindings from binding manager. Set to false to add and overwrite found bindings leaving other bindings intact. |
References getBindingManager(), getCommandManager(), pBindingManager, and pCommandManager.
Referenced by getKeyboard(), hasKeyboard(), keyboardBindKeyCode(), keyboardClear(), and mouseBindWheel().
| Array Dragengine.Commands.DefaultBindingHelper.pAxisBindings |
Referenced by getCommandManager(), keyboardBindKeyCode(), mouseBindLMR(), mouseBindWheel(), and removeAllDeviceBindings().
| BindingManager Dragengine.Commands.DefaultBindingHelper.pBindingManager |
| CommandManager Dragengine.Commands.DefaultBindingHelper.pCommandManager |
| InputDevice Dragengine.Commands.DefaultBindingHelper.pMouse |