Esempio n. 1
0
 public bool GetHMDButtonUp(NxrTrackedDevice.ButtonID btn)
 {
     return((_currentStates_hmd.hmdButtons & (1 << (int)btn)) == 0 && (_prevStates_hmd.hmdButtons & (1 << (int)btn)) != 0);
 }
Esempio n. 2
0
 public bool GetHMDButtonPressed(NxrTrackedDevice.ButtonID btn)
 {
     return((_currentStates_hmd.hmdButtons & (1 << (int)btn)) != 0);
 }
Esempio n. 3
0
 bool GetButtonUp(NxrTrackedDevice.ButtonID btn)
 {
     return((_currentStates.buttons & (1 << (int)btn)) == 0 && (_prevStates.buttons & (1 << (int)btn)) != 0);
 }