Battle Talent  V11
Public Types | Public Member Functions | Static Public Attributes | Properties | List of all members
CrossLink.VRTKInputButton Class Reference

Public Types

enum class  ButtonType {
  ButtonOne , ButtonTwo , StartMenu , Grip ,
  Trigger , Touchpad , TouchpadTwo
}
 

Public Member Functions

void FrameReset (VRTKInputDevice inputDevice, ButtonType button)
 Reset the cached values for a new frame. More...
 

Static Public Attributes

static ButtonType[] Buttons
 

Properties

bool PressDown [get]
 Is true ONLY on the frame that the button is first pressed down More...
 
bool PressUp [get]
 Is true ONLY on the frame that the button is released after being pressed down More...
 
bool IsPressed [get]
 Is true WHENEVER the button is pressed down More...
 
bool TouchDown [get]
 Is true ONLY on the frame that the button is first touched More...
 
bool TouchUp [get]
 Is true ONLY on the frame that the button is released after being touched More...
 
bool IsTouched [get]
 Is true WHENEVER the button is being touched More...
 
Vector2 Axis [get]
 x,y axis generally for the touchpad. trigger uses x More...
 
float SingleAxis [get]
 x axis from Axis More...
 

Member Function Documentation

◆ FrameReset()

void CrossLink.VRTKInputButton.FrameReset ( VRTKInputDevice  inputDevice,
ButtonType  button 
)

Reset the cached values for a new frame.

Parameters
inputDeviceNVRInputDevice
buttonNVRButtons

Member Data Documentation

◆ Buttons

ButtonType [] CrossLink.VRTKInputButton.Buttons
static
Initial value:
= {
ButtonType.ButtonOne,
ButtonType.ButtonTwo,
ButtonType.StartMenu,
ButtonType.Grip,
ButtonType.Trigger,
ButtonType.Touchpad,
ButtonType.TouchpadTwo,
}

Property Documentation

◆ Axis

Vector2 CrossLink.VRTKInputButton.Axis
get

x,y axis generally for the touchpad. trigger uses x

◆ IsPressed

bool CrossLink.VRTKInputButton.IsPressed
get

Is true WHENEVER the button is pressed down

◆ IsTouched

bool CrossLink.VRTKInputButton.IsTouched
get

Is true WHENEVER the button is being touched

◆ PressDown

bool CrossLink.VRTKInputButton.PressDown
get

Is true ONLY on the frame that the button is first pressed down

◆ PressUp

bool CrossLink.VRTKInputButton.PressUp
get

Is true ONLY on the frame that the button is released after being pressed down

◆ SingleAxis

float CrossLink.VRTKInputButton.SingleAxis
get

x axis from Axis

◆ TouchDown

bool CrossLink.VRTKInputButton.TouchDown
get

Is true ONLY on the frame that the button is first touched

◆ TouchUp

bool CrossLink.VRTKInputButton.TouchUp
get

Is true ONLY on the frame that the button is released after being touched