52a6690150
S04 now polls for the mouse position. Keyboard now handles events generated from code and not from physical devices.
32 lines
914 B
C#
32 lines
914 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);
|
|
}
|