|
Drag[en]gine Script Module DragonScript 1.35
|
Run command matching binding from binding manager. More...
Public Member Functions | |
| BindingManager | getBindingManager () |
| Binding manager. | |
| float | getMouseSensitivity () |
| Mouse sensitivity. | |
| float | getScaleMouseAxis () |
| Mouse axis scaling factor. | |
| float | getScaleMouseWheel () |
| Mouse wheel scaling factor. | |
| void | inputEvent (InputEvent event) |
| Process input event. | |
| bool | isVRHandFacingUser (Binding binding) |
| VR hand facing user condition. | |
| BindingInputProcessor | new (BindingManager bindingManager) |
| Create input processor. | |
| void | setScaleMouseAxis (float scale) |
| Set mouse axis scaling factor. | |
| void | setScaleMouseWheel (float scale) |
| Set mouse wheel scaling factor. | |
| Public Member Functions inherited from Dragengine.Utils.DefaultInputProcessor | |
| DefaultInputProcessor | new () |
| Create input processor. | |
Public Attributes | |
| BindingManager | pBindingManager |
| float | pScaleMouseAxis |
Protected Member Functions | |
| void | activate (Binding binding) |
| Activate binding command. | |
| void | analogAbsolute (Binding binding, float value) |
| Absolute analog input to binding command. | |
| void | analogRelative (Binding binding, float value) |
| Relative analog input to binding command. | |
| void | approach (Binding binding) |
| Approach binding command. | |
| void | deactivate (Binding binding) |
| Deactivate binding command. | |
| void | touch (Binding binding) |
| Touch binding command. | |
| void | untouch (Binding binding) |
| Untouch binding command. | |
| void | withdraw (Binding binding) |
| Withdraw binding command. | |
Run command matching binding from binding manager.
The binding input processor supports scaling the mouse axis and mouse wheel movement. This is a game play specific scaling value between the mouse movement and the input value passed on to the bindings. This is not the same as mouse sensitivity. The binding supports mouse sensitivity using BaseGameApp.settingInputMouseSensitivity setting.
|
protected |
Activate binding command.
Default implementation calls Command.start() .
References setScaleMouseWheel().
Referenced by analogAbsolute(), and isVRHandFacingUser().
|
protected |
Absolute analog input to binding command.
Default implementation calls Command.analogRelative() .
References activate().
Referenced by approach().
|
protected |
Relative analog input to binding command.
Default implementation calls Command.analogRelative() .
Referenced by isVRHandFacingUser(), and untouch().
|
protected |
Approach binding command.
Default implementation calls Command.approach() .
References analogAbsolute().
Referenced by isVRHandFacingUser().
|
protected |
Deactivate binding command.
Default implementation calls Command.stop() .
References getMouseSensitivity().
Referenced by isVRHandFacingUser(), and touch().
| BindingManager Dragengine.Commands.BindingInputProcessor.getBindingManager | ( | ) |
Binding manager.
References pBindingManager, and pScaleMouseAxis.
Referenced by getScaleMouseAxis().
| float Dragengine.Commands.BindingInputProcessor.getMouseSensitivity | ( | ) |
Mouse sensitivity.
If BaseGameApp exists returns BaseGameApp.getApp().getMouseSensitivity() otherwise 1. If you do not use BaseGameApp overwrite this method to return the appropriate value.
Referenced by deactivate(), and isVRHandFacingUser().
| float Dragengine.Commands.BindingInputProcessor.getScaleMouseAxis | ( | ) |
| float Dragengine.Commands.BindingInputProcessor.getScaleMouseWheel | ( | ) |
Mouse wheel scaling factor.
References getScaleMouseAxis(), and pScaleMouseAxis.
Referenced by setScaleMouseWheel().
| void Dragengine.Commands.BindingInputProcessor.inputEvent | ( | InputEvent | event | ) |
Process input event.
Reimplemented from Dragengine.Utils.DefaultInputProcessor.
References touch().
Referenced by isVRHandFacingUser().
| bool Dragengine.Commands.BindingInputProcessor.isVRHandFacingUser | ( | Binding | binding | ) |
VR hand facing user condition.
References activate(), analogRelative(), approach(), deactivate(), getMouseSensitivity(), inputEvent(), isVRHandFacingUser(), pBindingManager, pScaleMouseAxis, untouch(), and withdraw().
Referenced by isVRHandFacingUser().
| BindingInputProcessor Dragengine.Commands.BindingInputProcessor.new | ( | BindingManager | bindingManager | ) |
| void Dragengine.Commands.BindingInputProcessor.setScaleMouseAxis | ( | float | scale | ) |
Set mouse axis scaling factor.
Default value is 0.2
References pBindingManager.
Referenced by setScaleMouseWheel().
| void Dragengine.Commands.BindingInputProcessor.setScaleMouseWheel | ( | float | scale | ) |
Set mouse wheel scaling factor.
Default value is 0.2
References getScaleMouseWheel(), pScaleMouseAxis, and setScaleMouseAxis().
Referenced by activate().
|
protected |
Touch binding command.
Default implementation calls Command.touch() .
References deactivate().
Referenced by inputEvent().
|
protected |
Untouch binding command.
Default implementation calls Command.untouch() .
References analogRelative().
Referenced by isVRHandFacingUser().
|
protected |
Withdraw binding command.
Default implementation calls Command.withdraw() .
Referenced by isVRHandFacingUser().
| BindingManager Dragengine.Commands.BindingInputProcessor.pBindingManager |
Referenced by getBindingManager(), isVRHandFacingUser(), and setScaleMouseAxis().
| float Dragengine.Commands.BindingInputProcessor.pScaleMouseAxis |
Referenced by getBindingManager(), getScaleMouseWheel(), isVRHandFacingUser(), and setScaleMouseWheel().