Пример #1
0
        // Gets an empty version of the gamepad state
        public static GamepadState getEmpty()
        {
            // Variables
            GamepadState	gamepad=	new GamepadState();

            gamepad.gamepad=	null;
            gamepad.buttons=	GBL.NONE;

            return gamepad;
        }
Пример #2
0
        // Gets the gamepad's input state
        public static GamepadState getGamepadState()
        {
            // Variables
            GamepadState gpad=	new GamepadState();

            gpad.gamepad=	gamepad;
            gpad.update();

            return gpad;
        }