Opentk/Source/OpenTK/Input/IMouse.cs
2007-09-21 20:34:07 +00:00

33 lines
912 B
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
{
public interface IMouse : IInputDevice
{
int NumberOfButtons { get; }
int NumberOfWheels { get; }
IntPtr DeviceID { get; }
int Wheel { get; }
int X { get; }
int Y { get; }
int DeltaX { get; }
int DeltaY { get; }
event MouseMoveEvent Move;
event MouseButtonDownEvent ButtonDown;
event MouseButtonUpEvent ButtonUp;
}
public delegate void MouseMoveEvent(IMouse sender, MouseMoveData key);
public delegate void MouseButtonDownEvent(IMouse sender, MouseButton button);
public delegate void MouseButtonUpEvent(IMouse sender, MouseButton button);
}