From d3444080c31f10871ad8e97ceb8517565f74285a Mon Sep 17 00:00:00 2001 From: Ian C Date: Mon, 4 Jun 2012 23:24:52 +0000 Subject: Added code to handle joystick, and completed demo program. Ready to be used. --- src/Noddybox.Emulation.Xna.Input/Joystick/JoystickState.cs | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'src/Noddybox.Emulation.Xna.Input/Joystick/JoystickState.cs') diff --git a/src/Noddybox.Emulation.Xna.Input/Joystick/JoystickState.cs b/src/Noddybox.Emulation.Xna.Input/Joystick/JoystickState.cs index 3933127..5c23313 100644 --- a/src/Noddybox.Emulation.Xna.Input/Joystick/JoystickState.cs +++ b/src/Noddybox.Emulation.Xna.Input/Joystick/JoystickState.cs @@ -31,11 +31,15 @@ namespace Noddybox.Emulation.Xna.Input.Joystick [Flags] public enum DigitalJoystickState { - Centre = 0x00, - Up = 0x01, - Down = 0x02, - Left = 0x04, - Right = 0x08 + Centre = 0x00, + Up = 0x01, + Down = 0x02, + Left = 0x04, + Right = 0x08, + UpLeft = Up | Left, + UpRight = Up | Right, + DownLeft = Down | Left, + DownRight = Down | Right } /// -- cgit v1.2.3