Drag[en]gine Script Module DragonScript 1.35
Loading...
Searching...
No Matches
Dragengine.Gui.GamepadController.AxisState Class Reference

Axis state. More...

Inheritance diagram for Dragengine.Gui.GamepadController.AxisState:

Public Member Functions

void clear ()
 Clear value to 0.
Vector2 combineFocus (Vector2 result)
 Combine focus.
Vector2 combineMouse (Vector2 result)
 Combine mouse movement.
bool matches (InputEventSource system, int device, int axis)
 Axis state matches event parameters.
AxisState new (InputEventSource system, int device, int axis, AxisTarget target)
 Create axis state.
void update (GamepadController controller, float value)
 Update axis state using value sending events to controller if required.

Public Attributes

int pAxis
int pDevice
InputEventSource pSystem
AxisTarget pTarget
float pValue

Detailed Description

Axis state.

Member Function Documentation

◆ clear()

void Dragengine.Gui.GamepadController.AxisState.clear ( )

Clear value to 0.

References pTarget, and update().

◆ combineFocus()

Vector2 Dragengine.Gui.GamepadController.AxisState.combineFocus ( Vector2 result)

Combine focus.

References matches(), pAxis, pDevice, and pSystem.

◆ combineMouse()

Vector2 Dragengine.Gui.GamepadController.AxisState.combineMouse ( Vector2 result)

Combine mouse movement.

◆ matches()

bool Dragengine.Gui.GamepadController.AxisState.matches ( InputEventSource system,
int device,
int axis )

Axis state matches event parameters.

References new(), and pSystem.

Referenced by combineFocus().

◆ new()

AxisState Dragengine.Gui.GamepadController.AxisState.new ( InputEventSource system,
int device,
int axis,
AxisTarget target )

Create axis state.

References pTarget, and pValue.

Referenced by matches().

◆ update()

void Dragengine.Gui.GamepadController.AxisState.update ( GamepadController controller,
float value )

Update axis state using value sending events to controller if required.

References pAxis, pDevice, and pTarget.

Referenced by clear().

Member Data Documentation

◆ pAxis

int Dragengine.Gui.GamepadController.AxisState.pAxis

Referenced by combineFocus(), and update().

◆ pDevice

int Dragengine.Gui.GamepadController.AxisState.pDevice

Referenced by combineFocus(), and update().

◆ pSystem

InputEventSource Dragengine.Gui.GamepadController.AxisState.pSystem

Referenced by combineFocus(), and matches().

◆ pTarget

AxisTarget Dragengine.Gui.GamepadController.AxisState.pTarget

Referenced by clear(), new(), and update().

◆ pValue

float Dragengine.Gui.GamepadController.AxisState.pValue

Referenced by new().


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