Details | Last modification | View Log | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 1452 | chris | 1 | #region --- License --- |
| 2 | /* Copyright (c) 2006, 2007 Stefanos Apostolopoulos |
||
| 3 | * See license.txt for license info |
||
| 4 | */ |
||
| 5 | #endregion |
||
| 6 | |||
| 7 | using System; |
||
| 8 | using System.Collections.Generic; |
||
| 9 | using System.Text; |
||
| 10 | |||
| 11 | namespace OpenTK.Input |
||
| 12 | { |
||
| 13 | /// <summary> |
||
| 14 | /// Defines a common interface for all input devices. |
||
| 15 | /// </summary> |
||
| 16 | public interface IInputDevice |
||
| 17 | { |
||
| 18 | /// <summary> |
||
| 19 | /// Gets a System.String with a unique description of this IInputDevice instance. |
||
| 20 | /// </summary> |
||
| 21 | string Description { get; } |
||
| 22 | |||
| 23 | /// <summary> |
||
| 24 | /// Gets an OpenTK.Input.InputDeviceType value, representing the device type of this IInputDevice instance. |
||
| 25 | /// </summary> |
||
| 26 | InputDeviceType DeviceType { get; } |
||
| 27 | } |
||
| 28 | |||
| 29 | /// <summary> |
||
| 30 | /// The type of the input device. |
||
| 31 | /// </summary> |
||
| 32 | public enum InputDeviceType |
||
| 33 | { |
||
| 34 | /// <summary> |
||
| 35 | /// Device is a keyboard. |
||
| 36 | /// </summary> |
||
| 37 | Keyboard, |
||
| 38 | /// <summary> |
||
| 39 | /// Device is a mouse. |
||
| 40 | /// </summary> |
||
| 41 | Mouse, |
||
| 42 | /// <summary> |
||
| 43 | /// Device is a Human Interface Device. Joysticks, joypads, pens |
||
| 44 | /// and some specific usb keyboards/mice fall into this category. |
||
| 45 | /// </summary> |
||
| 46 | Hid |
||
| 47 | } |
||
| 48 | } |