Classes | Static Attributes | List of all members
Headjack.VRInput Class Reference
Inheritance diagram for Headjack.VRInput:

Classes

class  VrButton
 

Static Attributes

static VrButton Back = new VrButton()
 VR Back button More...
 
static VrButton Confirm = new VrButton()
 VR Input button More...
 
static bool MotionControllerLaser =false
 Show the laser of the motion controller More...
 
static bool MotionControllerShow =true
 Show the motion controller, it will be glass/seethrough if false More...
 
static Shader VideoShader
 

Member Data Documentation

§ Back

VrButton Headjack.VRInput.Back = new VrButton()
static

VR Back button

Note
Escape button - Android back button - Oculus Remote Return - Gear VR Back button - Vive Menu button

Example

public void CheckIfClickedOnMe()
{
if (App.IsCrosshairHit(gameObject))
{
if (VRInput.Confirm.Pressed)
{
print("Clicked on me!");
}
}
}

§ Confirm

VrButton Headjack.VRInput.Confirm = new VrButton()
static

VR Input button

Note
Left mouse button - Space - Screen tap - Oculus Remote Confirm - Gear VR touchpad tap - Vive Trigger

Example

public void CheckIfClickedOnMe()
{
if (App.IsCrosshairHit(gameObject))
{
if (VRInput.Confirm.Pressed)
{
print("Clicked on me!");
}
}
}

§ MotionControllerLaser

bool Headjack.VRInput.MotionControllerLaser =false
static

Show the laser of the motion controller

Example

public void ShowLaserWhenHoldingTrigger()
{
if (VRInput.Confirm.Hold)
{
VRInput.MotionControllerLaser=true;
}else
{
VRInput.MotionControllerLaser=false;
}
}

§ MotionControllerShow

bool Headjack.VRInput.MotionControllerShow =true
static

Show the motion controller, it will be glass/seethrough if false

Example

public void ShowControllerWhenHoldingTrigger()
{
if (VRInput.Confirm.Hold)
{
VRInput.MotionControllerShow=true;
}else
{
VRInput.MotionControllerShow=false;
}
}

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