summaryrefslogtreecommitdiff
path: root/src/Noddybox.Emulation.Xna.Input/Joystick/JoystickState.cs
diff options
context:
space:
mode:
authorIan C <ianc@noddybox.co.uk>2012-06-04 23:24:52 +0000
committerIan C <ianc@noddybox.co.uk>2012-06-04 23:24:52 +0000
commitd3444080c31f10871ad8e97ceb8517565f74285a (patch)
tree1378949c9ed0fbeb116cb8030bfcfbff6f79572f /src/Noddybox.Emulation.Xna.Input/Joystick/JoystickState.cs
parent643c13f3ebd3240aa58f83a35a66909fdd9545d9 (diff)
Added code to handle joystick, and completed demo program. Ready to be used.
Diffstat (limited to 'src/Noddybox.Emulation.Xna.Input/Joystick/JoystickState.cs')
-rw-r--r--src/Noddybox.Emulation.Xna.Input/Joystick/JoystickState.cs14
1 files changed, 9 insertions, 5 deletions
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
}
/// <summary>