mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-26 07:05:35 +00:00
85c37f0600
* Source/OpenTK/Platform/Factory.cs: * Source/OpenTK/Input/InputDriver.cs: * Source/OpenTK/Input/IMouseDriver.cs: * Source/OpenTK/Platform/X11/X11Input.cs: * Source/OpenTK/Platform/X11/X11Factory.cs: * Source/OpenTK/Platform/Windows/WMInput.cs: * Source/OpenTK/Platform/IPlatformFactory.cs: * Source/OpenTK/Platform/MacOS/CarbonInput.cs: * Source/OpenTK/Platform/Windows/WinFactory.cs: * Source/OpenTK/Platform/MacOS/MacOSFactory.cs: * Source/OpenTK/Platform/Windows/WinGLNative.cs: * Source/OpenTK/Platform/Windows/WinRawMouse.cs: * Source/OpenTK/Platform/Windows/WinRawInput.cs: Added new MouseDriver interface and added stub internal implementations.
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 MouseDevice drivers.
|
|
/// </summary>
|
|
public interface IMouseDriver
|
|
{
|
|
/// <summary>
|
|
/// Gets the list of available MouseDevices.
|
|
/// </summary>
|
|
IList<MouseDevice> Mouse { get; }
|
|
|
|
/// <summary>
|
|
/// Retrieves the MouseState for the default keyboard device.
|
|
/// </summary>
|
|
/// <returns>A <see cref="OpenTK.Input.MouseState"/> structure containing the state of the mouse device.</returns>
|
|
MouseState GetState();
|
|
|
|
/// <summary>
|
|
/// Retrieves the MouseState for the specified keyboard device.
|
|
/// </summary>
|
|
/// <param name="index">The index of the keyboard device.</param>
|
|
/// <returns>A <see cref="OpenTK.Input.MouseState"/> structure containing the state of the mouse device.</returns>
|
|
MouseState GetState(int index);
|
|
}
|
|
}
|