diff options
author | Ian C <ianc@noddybox.co.uk> | 2012-05-28 22:46:59 +0000 |
---|---|---|
committer | Ian C <ianc@noddybox.co.uk> | 2012-05-28 22:46:59 +0000 |
commit | 643c13f3ebd3240aa58f83a35a66909fdd9545d9 (patch) | |
tree | f342069f0a639d55e20f5913e758336932cdcf2d /src/Noddybox.Emulation.Xna.Input/Joystick/JoystickState.cs | |
parent | 60b52b009c2f74cea7d5ffb0ad62cbbc55c41729 (diff) |
Added test code to handle buttons to make sure drawing is OK.
Diffstat (limited to 'src/Noddybox.Emulation.Xna.Input/Joystick/JoystickState.cs')
-rw-r--r-- | src/Noddybox.Emulation.Xna.Input/Joystick/JoystickState.cs | 37 |
1 files changed, 27 insertions, 10 deletions
diff --git a/src/Noddybox.Emulation.Xna.Input/Joystick/JoystickState.cs b/src/Noddybox.Emulation.Xna.Input/Joystick/JoystickState.cs index d57ebaa..3933127 100644 --- a/src/Noddybox.Emulation.Xna.Input/Joystick/JoystickState.cs +++ b/src/Noddybox.Emulation.Xna.Input/Joystick/JoystickState.cs @@ -28,16 +28,33 @@ namespace Noddybox.Emulation.Xna.Input.Joystick /// <summary>
/// Defines the state of the joystick.
/// </summary>
- public enum JoystickState
+ [Flags]
+ public enum DigitalJoystickState
{
- None = 0x00,
- Up = 0x01,
- Down = 0x02,
- Left = 0x04,
- Right = 0x08,
- Fire1 = 0x10,
- Fire2 = 0x20,
- Fire3 = 0x40,
- Fire4 = 0x80
+ Centre = 0x00,
+ Up = 0x01,
+ Down = 0x02,
+ Left = 0x04,
+ Right = 0x08
+ }
+
+ /// <summary>
+ /// Defines the type of joystick.
+ /// </summary>
+ public enum JoystickType
+ {
+ Analogue,
+ Digital
+ }
+
+ /// <summary>
+ /// Defines the locked axis of the joystick.
+ /// </summary>
+ public enum JoystickLock
+ {
+ EightWay,
+ FourWay,
+ TwoWayHorizontal,
+ TwoWayVertical
}
}
|