VR Interaction Framework  1.0
A vr framework for the Oculus Quest
BNG.JoystickControl Class Reference

Helper for joystick type physical inputs More...

Inheritance diagram for BNG.JoystickControl:

Public Member Functions

virtual void OnJoystickChange (float leverX, float leverY)
 

Public Attributes

float MinDegrees = -45f
 Minimum angle the Level can be rotated More...
 
float MaxDegrees = 45f
 Maximum angle the Level can be rotated More...
 
float LeverPercentageX = 0
 Current Percentage of joystick on X axis (left / right) More...
 
float LeverPercentageZ = 0
 Current Percentage of joystick on Z axis (forward / back) More...
 
FloatFloatEvent onJoystickChange
 Event called when Joystick value is changed More...
 

Detailed Description

Helper for joystick type physical inputs

Member Function Documentation

◆ OnJoystickChange()

virtual void BNG.JoystickControl.OnJoystickChange ( float  leverX,
float  leverY 
)
virtual

Member Data Documentation

◆ LeverPercentageX

float BNG.JoystickControl.LeverPercentageX = 0

Current Percentage of joystick on X axis (left / right)

◆ LeverPercentageZ

float BNG.JoystickControl.LeverPercentageZ = 0

Current Percentage of joystick on Z axis (forward / back)

◆ MaxDegrees

float BNG.JoystickControl.MaxDegrees = 45f

Maximum angle the Level can be rotated

◆ MinDegrees

float BNG.JoystickControl.MinDegrees = -45f

Minimum angle the Level can be rotated

◆ onJoystickChange

FloatFloatEvent BNG.JoystickControl.onJoystickChange

Event called when Joystick value is changed


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