Battle Talent  V11
Static Public Member Functions | List of all members
VRTKUtil Class Reference

Static Public Member Functions

static bool IsPresent ()
 check if the vr device is present More...
 
static InputDevice GetDevicesWithCharacteristics (InputDeviceCharacteristics desiredCharacteristics)
 
static XRNode GetInputDeviceXRNode (InputDevice device)
 
static bool CheckCmdControllerType (ref VRTKInputDevice.ControllerType controllerType)
 
static VRTKInputDevice.ControllerType GetCurrentControllerType (InputDevice device)
 given input device to get the related controller type More...
 
static bool IsBtnPressed (InputDevice device, InputFeatureUsage< bool > usage)
 check the button of the given device is pressed or not More...
 
static bool GetHandPosePressDown (VRTKInputButton.ButtonType button, XRNode node)
 
static bool GetHandPosePressUp (VRTKInputButton.ButtonType button, XRNode node)
 
static bool GetHandPosePress (VRTKInputButton.ButtonType button, XRNode node)
 
static bool GetControllerButtonPressDown (VRTKInputButton.ButtonType button, InputDevice device, XRNode node, bool isTouch=false)
 check if a given button was pressed More...
 
static bool GetControllerButtonPressUp (VRTKInputButton.ButtonType button, InputDevice device, XRNode node, bool isTouch=false)
 check if a given button was release More...
 
static bool GetControllerButtonPress (VRTKInputButton.ButtonType button, InputDevice device, XRNode node, bool isTouch=false)
 
static Vector2 GetControllerAxisValue (VRTKInputButton.ButtonType button, InputDevice device, XRNode node)
 get axis value of a given button from input device More...
 
static bool GetControllerButtonState (VRTKInputButton.ButtonType button, InputDevice device, bool isTouch=false)
 another way get button state on given inputdevice More...
 
static Vector2 GetControllerAxis (VRTKInputButton.ButtonType button, InputDevice device)
 
static void HapticPulse (InputDevice device, float strength=0.5f)
 

Member Function Documentation

◆ GetControllerAxisValue()

static Vector2 VRTKUtil.GetControllerAxisValue ( VRTKInputButton.ButtonType  button,
InputDevice  device,
XRNode  node 
)
static

get axis value of a given button from input device

Parameters
button
device
Returns

◆ GetControllerButtonPressDown()

static bool VRTKUtil.GetControllerButtonPressDown ( VRTKInputButton.ButtonType  button,
InputDevice  device,
XRNode  node,
bool  isTouch = false 
)
static

check if a given button was pressed

Parameters
button
device
isTouch
Returns

◆ GetControllerButtonPressUp()

static bool VRTKUtil.GetControllerButtonPressUp ( VRTKInputButton.ButtonType  button,
InputDevice  device,
XRNode  node,
bool  isTouch = false 
)
static

check if a given button was release

Parameters
button
device
isTouch
Returns

◆ GetControllerButtonState()

static bool VRTKUtil.GetControllerButtonState ( VRTKInputButton.ButtonType  button,
InputDevice  device,
bool  isTouch = false 
)
static

another way get button state on given inputdevice

Parameters
button
device
isTouch
Returns

◆ GetCurrentControllerType()

static VRTKInputDevice.ControllerType VRTKUtil.GetCurrentControllerType ( InputDevice  device)
static

given input device to get the related controller type

Parameters
device
Returns

◆ IsBtnPressed()

static bool VRTKUtil.IsBtnPressed ( InputDevice  device,
InputFeatureUsage< bool >  usage 
)
static

check the button of the given device is pressed or not

Parameters
device
button
Returns

◆ IsPresent()

static bool VRTKUtil.IsPresent ( )
static

check if the vr device is present

Returns