From 80bde7f7aca12ae285ecc7cc848a30cda6db3d0b Mon Sep 17 00:00:00 2001 From: the_fiddler Date: Sun, 22 Jun 2008 16:21:52 +0000 Subject: [PATCH] Preliminary implementation of JoystickDevice. --- Source/OpenTK/Input/JoystickDevice.cs | 47 +++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 Source/OpenTK/Input/JoystickDevice.cs diff --git a/Source/OpenTK/Input/JoystickDevice.cs b/Source/OpenTK/Input/JoystickDevice.cs new file mode 100644 index 00000000..0ea49648 --- /dev/null +++ b/Source/OpenTK/Input/JoystickDevice.cs @@ -0,0 +1,47 @@ +using System; +using System.Collections.Generic; +using System.Text; +using OpenTK.Math; + +namespace OpenTK.Input +{ + /// + /// Represents a joystick device and provides methods to query its state. + /// + public class JoystickDevice : IInputDevice + { + string description; + Vector2[] axis_position; + + #region --- IInputDevice Members --- + + /// + /// Gets a string describing this JoystickDevice. + /// + public string Description + { + get { return description; } + internal set { description = value; } + } + + /// + /// Gets a value indicating the InputDeviceType of this InputDevice. + /// + public InputDeviceType DeviceType + { + get { return InputDeviceType.HID; } + } + + #endregion + + #region --- Public Methods --- + + //public Vector2 Axis1 + //{ + // get { return axis_position.Clone(); } + // internal set { + //} + + #endregion + } +}