public bool GetNoloButtonPressed(NoloButtonID button) { return(GetNoloButtonPressed((uint)1 << (int)button)); }
public bool GetNoloButtonUp(NoloButtonID button) { return(GetNoloButtonUp(ButtonMask.GetButtonMask(button))); }
public static uint GetButtonMask(NoloButtonID button) { #if NOLO_6DOF if (NoloVR_Plugins.GetTrackModel() == 3) { return(0); } else { switch (button) { case NoloButtonID.TouchPad: return(1 << 0); case NoloButtonID.Trigger: return(1 << 1); case NoloButtonID.Menu: return(1 << 2); case NoloButtonID.System: return(1 << 3); case NoloButtonID.Grip: return(1 << 4); default: return(0); } } #elif NOLO_3DOF if (NoloVR_Plugins.GetTrackModel() == 6) { switch (button) { case NoloButtonID.TouchPad: return(1 << 0); case NoloButtonID.Trigger: return(1 << 1); case NoloButtonID.System: return(1 << 3); case NoloButtonID.SystemLongPress: return(0); case NoloButtonID.Back: return(1 << 2); case NoloButtonID.VolumeDown: return(0); case NoloButtonID.VolumeUp: return(0); default: return(0); } } else { switch (button) { case NoloButtonID.TouchPad: return(1 << 1); case NoloButtonID.Trigger: return(1 << 0); case NoloButtonID.System: return(1 << 2); case NoloButtonID.SystemLongPress: return(1 << 3); case NoloButtonID.Back: return(1 << 4); case NoloButtonID.VolumeDown: return(1 << 6); case NoloButtonID.VolumeUp: return(1 << 7); default: return(0); } } #else return(0); #endif }
public bool GetNoloButtonPressed(NoloButtonID button) { return(GetNoloButtonPressed(ButtonMask.GetButtonMask(button))); }
public bool GetNoloButtonUp(NoloButtonID button) { return(GetNoloButtonUp((uint)1 << (int)button)); }