예제 #1
0
 public bool GetNoloButtonPressed(NoloButtonID button)
 {
     return(GetNoloButtonPressed((uint)1 << (int)button));
 }
예제 #2
0
 public bool GetNoloButtonUp(NoloButtonID button)
 {
     return(GetNoloButtonUp(ButtonMask.GetButtonMask(button)));
 }
예제 #3
0
        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
        }
예제 #4
0
 public bool GetNoloButtonPressed(NoloButtonID button)
 {
     return(GetNoloButtonPressed(ButtonMask.GetButtonMask(button)));
 }
예제 #5
0
 public bool GetNoloButtonUp(NoloButtonID button)
 {
     return(GetNoloButtonUp((uint)1 << (int)button));
 }