Exemple #1
0
        public bool GetButtonState(int mapId)
        {
            var rawOffset = JoystickOffsetValues.GetButtonIndexForJoystickState(mapId);
            var js        = new JoystickState();

            Joystick.GetCurrentState(ref js);
            return(js.Buttons[rawOffset]);
        }