2007-08-10 11:27:13 +02:00
|
|
|
|
#region --- License ---
|
|
|
|
|
/* Copyright (c) 2006, 2007 Stefanos Apostolopoulos
|
|
|
|
|
* See license.txt for license info
|
|
|
|
|
*/
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
using System;
|
2007-08-05 12:17:20 +02:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
|
|
|
|
namespace OpenTK.Input
|
|
|
|
|
{
|
2007-09-21 22:34:07 +02:00
|
|
|
|
public interface IMouse : IInputDevice
|
2007-08-05 12:17:20 +02:00
|
|
|
|
{
|
2007-09-21 22:34:07 +02:00
|
|
|
|
int NumberOfButtons { get; }
|
|
|
|
|
int NumberOfWheels { get; }
|
|
|
|
|
IntPtr DeviceID { get; }
|
|
|
|
|
int Wheel { get; }
|
|
|
|
|
int X { get; }
|
|
|
|
|
int Y { get; }
|
|
|
|
|
int DeltaX { get; }
|
|
|
|
|
int DeltaY { get; }
|
|
|
|
|
|
2007-09-22 00:49:42 +02:00
|
|
|
|
//event MouseMoveEvent Move;
|
2007-09-21 22:34:07 +02:00
|
|
|
|
event MouseButtonDownEvent ButtonDown;
|
|
|
|
|
event MouseButtonUpEvent ButtonUp;
|
2007-08-05 12:17:20 +02:00
|
|
|
|
}
|
2007-09-21 22:34:07 +02:00
|
|
|
|
|
|
|
|
|
public delegate void MouseMoveEvent(IMouse sender, MouseMoveData key);
|
|
|
|
|
public delegate void MouseButtonDownEvent(IMouse sender, MouseButton button);
|
|
|
|
|
public delegate void MouseButtonUpEvent(IMouse sender, MouseButton button);
|
2007-08-05 12:17:20 +02:00
|
|
|
|
}
|