Drag[en]gine Script Module DragonScript 1.35
Loading...
Searching...
No Matches
Dragengine.Commands.BindingInputProcessor Class Reference

Run command matching binding from binding manager. More...

Inheritance diagram for Dragengine.Commands.BindingInputProcessor:
Dragengine.Utils.DefaultInputProcessor Dragengine.Utils.InputProcessor

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.

Detailed Description

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.

Member Function Documentation

◆ activate()

void Dragengine.Commands.BindingInputProcessor.activate ( Binding binding)
protected

Activate binding command.

Default implementation calls Command.start() .

References setScaleMouseWheel().

Referenced by analogAbsolute(), and isVRHandFacingUser().

◆ analogAbsolute()

void Dragengine.Commands.BindingInputProcessor.analogAbsolute ( Binding binding,
float value )
protected

Absolute analog input to binding command.

Default implementation calls Command.analogRelative() .

References activate().

Referenced by approach().

◆ analogRelative()

void Dragengine.Commands.BindingInputProcessor.analogRelative ( Binding binding,
float value )
protected

Relative analog input to binding command.

Default implementation calls Command.analogRelative() .

Referenced by isVRHandFacingUser(), and untouch().

◆ approach()

void Dragengine.Commands.BindingInputProcessor.approach ( Binding binding)
protected

Approach binding command.

Version
1.28

Default implementation calls Command.approach() .

References analogAbsolute().

Referenced by isVRHandFacingUser().

◆ deactivate()

void Dragengine.Commands.BindingInputProcessor.deactivate ( Binding binding)
protected

Deactivate binding command.

Default implementation calls Command.stop() .

References getMouseSensitivity().

Referenced by isVRHandFacingUser(), and touch().

◆ getBindingManager()

BindingManager Dragengine.Commands.BindingInputProcessor.getBindingManager ( )

Binding manager.

References pBindingManager, and pScaleMouseAxis.

Referenced by getScaleMouseAxis().

◆ getMouseSensitivity()

float Dragengine.Commands.BindingInputProcessor.getMouseSensitivity ( )

Mouse sensitivity.

Version
1.18

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().

◆ getScaleMouseAxis()

float Dragengine.Commands.BindingInputProcessor.getScaleMouseAxis ( )

Mouse axis scaling factor.

References getBindingManager().

Referenced by getScaleMouseWheel().

◆ getScaleMouseWheel()

float Dragengine.Commands.BindingInputProcessor.getScaleMouseWheel ( )

Mouse wheel scaling factor.

References getScaleMouseAxis(), and pScaleMouseAxis.

Referenced by setScaleMouseWheel().

◆ inputEvent()

void Dragengine.Commands.BindingInputProcessor.inputEvent ( InputEvent event)

Process input event.

Reimplemented from Dragengine.Utils.DefaultInputProcessor.

References touch().

Referenced by isVRHandFacingUser().

◆ isVRHandFacingUser()

bool Dragengine.Commands.BindingInputProcessor.isVRHandFacingUser ( Binding binding)

◆ new()

BindingInputProcessor Dragengine.Commands.BindingInputProcessor.new ( BindingManager bindingManager)

Create input processor.

References new().

Referenced by new().

◆ setScaleMouseAxis()

void Dragengine.Commands.BindingInputProcessor.setScaleMouseAxis ( float scale)

Set mouse axis scaling factor.

Default value is 0.2

References pBindingManager.

Referenced by setScaleMouseWheel().

◆ 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().

◆ touch()

void Dragengine.Commands.BindingInputProcessor.touch ( Binding binding)
protected

Touch binding command.

Default implementation calls Command.touch() .

References deactivate().

Referenced by inputEvent().

◆ untouch()

void Dragengine.Commands.BindingInputProcessor.untouch ( Binding binding)
protected

Untouch binding command.

Default implementation calls Command.untouch() .

References analogRelative().

Referenced by isVRHandFacingUser().

◆ withdraw()

void Dragengine.Commands.BindingInputProcessor.withdraw ( Binding binding)
protected

Withdraw binding command.

Version
1.28

Default implementation calls Command.withdraw() .

Referenced by isVRHandFacingUser().

Member Data Documentation

◆ pBindingManager

BindingManager Dragengine.Commands.BindingInputProcessor.pBindingManager

◆ pScaleMouseAxis

float Dragengine.Commands.BindingInputProcessor.pScaleMouseAxis

The documentation for this class was generated from the following file: