2009-02-22 10:43:35 +00:00
|
|
|
|
#region --- License ---
|
|
|
|
|
/* Copyright (c) 2006, 2007 Stefanos Apostolopoulos
|
|
|
|
|
* See license.txt for license info
|
|
|
|
|
*/
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
|
|
|
|
namespace OpenTK.Input
|
|
|
|
|
{
|
2009-02-28 23:11:27 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Defines the interface for KeyboardDevice drivers.
|
|
|
|
|
/// </summary>
|
2009-02-22 10:43:35 +00:00
|
|
|
|
public interface IKeyboardDriver
|
|
|
|
|
{
|
2009-02-28 23:11:27 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets the list of available KeyboardDevices.
|
|
|
|
|
/// </summary>
|
2009-02-22 10:43:35 +00:00
|
|
|
|
IList<KeyboardDevice> Keyboard { get; }
|
2010-10-20 14:33:23 +00:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Retrieves the KeyboardState for the default keyboard device.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns>A <see cref="OpenTK.Input.KeyboardState"/> structure containing the state of the keyboard device.</returns>
|
|
|
|
|
KeyboardState GetState();
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Retrieves the KeyboardState for the specified keyboard device.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="index">The index of the keyboard device.</param>
|
|
|
|
|
/// <returns>A <see cref="OpenTK.Input.KeyboardState"/> structure containing the state of the keyboard device.</returns>
|
|
|
|
|
KeyboardState GetState(int index);
|
2009-02-22 10:43:35 +00:00
|
|
|
|
}
|
|
|
|
|
}
|