mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-26 05:15:32 +00:00
7e3182b1fc
* Source/OpenTK/Input/Keyboard.cs: * Source/OpenTK/Input/InputDriver.cs: * Source/OpenTK/Input/KeyboardState.cs: * Source/OpenTK/Input/IKeyboardDriver.cs: * Source/OpenTK/Platform/X11/X11Input.cs: * Source/OpenTK/Platform/X11/Functions.cs: * Source/OpenTK/Platform/X11/X11Factory.cs: * Source/OpenTK/Platform/Windows/WMInput.cs: * Source/OpenTK/Platform/X11/X11Keyboard.cs: * Source/OpenTK/Platform/MacOS/CarbonInput.cs: * Source/OpenTK/Platform/Windows/WinGLNative.cs: * Source/OpenTK/Platform/Windows/WinRawInput.cs: * Source/OpenTK/Platform/Windows/WinRawKeyboard.cs: Added initial OpenTK.Input.Keyboard implementation for X11.
37 lines
1.1 KiB
C#
37 lines
1.1 KiB
C#
#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
|
|
{
|
|
/// <summary>
|
|
/// Defines the interface for KeyboardDevice drivers.
|
|
/// </summary>
|
|
public interface IKeyboardDriver
|
|
{
|
|
/// <summary>
|
|
/// Gets the list of available KeyboardDevices.
|
|
/// </summary>
|
|
IList<KeyboardDevice> Keyboard { get; }
|
|
|
|
/// <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);
|
|
}
|
|
}
|