Skip to content

fchb1239/VRInputHandler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 

Repository files navigation

VR Input Handler

Makes VR input easy

Download

Gets input

// Gets right hand
bool isLeftHand = false;
bool isPressing = VRInputHandler.GetInput(isLeftHand, InputType.Trigger);

Gets joystick direction

// Gets left hand
bool isLeftHand = true;
Vector2 direction = VRInputHandler.GetJoystick(isLeftHand);

Vibrates controllers

// Gets right hand
bool isLeftHand = false;
float strenght = 0.1f;
float duration = 0.1f;
Vector2 direction = VRInputHandler.VibrateController(isLeftHand, strength, duration);