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