mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-25 04:25:33 +00:00
11261553ea
S04 now polls for the mouse position. Keyboard now handles events generated from code and not from physical devices.
33 lines
914 B
C#
33 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);
|
|
}
|