using System; using System.Collections.Generic; using System.Text; using OpenTK.Input; namespace OpenTK { public class InputDriver : IInputDriver { IInputDriver inputDriver; public InputDriver(IntPtr parentHandle) { if (Environment.OSVersion.Version.Major > 5 || (Environment.OSVersion.Version.Major == 5 && Environment.OSVersion.Version.Minor >= 1)) { inputDriver = new OpenTK.Platform.Windows.WinRawInput(parentHandle); } else { throw new PlatformNotSupportedException("Input is not implemented for platforms prior to Windows XP, yet."); } } #region --- IInputDriver Members --- IList IInputDriver.InputDevices { get { return inputDriver.InputDevices; } } public IList Keyboard { get { return inputDriver.Keyboard; } } public IList Mouse { get { throw new NotImplementedException(); } } #endregion } }