mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-01-11 22:35:45 +00:00
Preliminary implementation of JoystickDevice.
This commit is contained in:
parent
d7598b305a
commit
47bb81d62f
47
Source/OpenTK/Input/JoystickDevice.cs
Normal file
47
Source/OpenTK/Input/JoystickDevice.cs
Normal file
|
@ -0,0 +1,47 @@
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Text;
|
||||||
|
using OpenTK.Math;
|
||||||
|
|
||||||
|
namespace OpenTK.Input
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Represents a joystick device and provides methods to query its state.
|
||||||
|
/// </summary>
|
||||||
|
public class JoystickDevice : IInputDevice
|
||||||
|
{
|
||||||
|
string description;
|
||||||
|
Vector2[] axis_position;
|
||||||
|
|
||||||
|
#region --- IInputDevice Members ---
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets a string describing this JoystickDevice.
|
||||||
|
/// </summary>
|
||||||
|
public string Description
|
||||||
|
{
|
||||||
|
get { return description; }
|
||||||
|
internal set { description = value; }
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets a value indicating the InputDeviceType of this InputDevice.
|
||||||
|
/// </summary>
|
||||||
|
public InputDeviceType DeviceType
|
||||||
|
{
|
||||||
|
get { return InputDeviceType.HID; }
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region --- Public Methods ---
|
||||||
|
|
||||||
|
//public Vector2 Axis1
|
||||||
|
//{
|
||||||
|
// get { return axis_position.Clone(); }
|
||||||
|
// internal set {
|
||||||
|
//}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in a new issue