Drag[en]gine Script Module DragonScript
1.23
|
Run command matching binding from binding manager. More...
Public Member Functions | |
BindingManager | getBindingManager () |
Binding manager. More... | |
float | getMouseSensitivity () |
Mouse sensitivity. More... | |
float | getScaleMouseAxis () |
Mouse axis scaling factor. More... | |
float | getScaleMouseWheel () |
Mouse wheel scaling factor. More... | |
void | inputEvent (InputEvent event) |
Process input event. More... | |
BindingInputProcessor | new (BindingManager bindingManager) |
Create input processor. More... | |
void | setScaleMouseAxis (float scale) |
Set mouse axis scaling factor. More... | |
void | setScaleMouseWheel (float scale) |
Set mouse wheel scaling factor. More... | |
Public Member Functions inherited from Dragengine.Utils.DefaultInputProcessor | |
DefaultInputProcessor | new () |
Create input processor. More... | |
Protected Member Functions | |
void | activate (Binding binding) |
Activate binding command. More... | |
void | analogAbsolute (Binding binding, float value) |
Absolute analog input to binding command. More... | |
void | analogRelative (Binding binding, float value) |
Relative analog input to binding command. More... | |
void | deactivate (Binding binding) |
Deactivate binding command. More... | |
void | touch (Binding binding) |
Touch binding command. More... | |
void | untouch (Binding binding) |
Untouch binding command. More... | |
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() .
|
protected |
Absolute analog input to binding command.
Default implementation calls Command.analogRelative() .
|
protected |
Relative analog input to binding command.
Default implementation calls Command.analogRelative() .
|
protected |
Deactivate binding command.
Default implementation calls Command.stop() .
BindingManager Dragengine.Commands.BindingInputProcessor.getBindingManager | ( | ) |
Binding manager.
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.
float Dragengine.Commands.BindingInputProcessor.getScaleMouseAxis | ( | ) |
Mouse axis scaling factor.
float Dragengine.Commands.BindingInputProcessor.getScaleMouseWheel | ( | ) |
Mouse wheel scaling factor.
void Dragengine.Commands.BindingInputProcessor.inputEvent | ( | InputEvent | event | ) |
Process input event.
Reimplemented from Dragengine.Utils.DefaultInputProcessor.
BindingInputProcessor Dragengine.Commands.BindingInputProcessor.new | ( | BindingManager | bindingManager | ) |
Create input processor.
void Dragengine.Commands.BindingInputProcessor.setScaleMouseAxis | ( | float | scale | ) |
Set mouse axis scaling factor.
Default value is 0.2
void Dragengine.Commands.BindingInputProcessor.setScaleMouseWheel | ( | float | scale | ) |
Set mouse wheel scaling factor.
Default value is 0.2
|
protected |
Touch binding command.
Default implementation calls Command.touch() .
|
protected |
Untouch binding command.
Default implementation calls Command.untouch() .