2009-02-22 11:43:35 +01: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-03-01 00:11:27 +01:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Defines the interface for MouseDevice drivers.
|
|
|
|
|
/// </summary>
|
2009-02-22 11:43:35 +01:00
|
|
|
|
public interface IMouseDriver
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
2009-03-01 00:11:27 +01:00
|
|
|
|
/// Gets the list of available MouseDevices.
|
2009-02-22 11:43:35 +01:00
|
|
|
|
/// </summary>
|
|
|
|
|
IList<MouseDevice> Mouse { get; }
|
2010-10-20 16:58:38 +02:00
|
|
|
|
|
|
|
|
|
/// <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);
|
2009-02-22 11:43:35 +01:00
|
|
|
|
}
|
|
|
|
|
}
|