C# Class OpenTK.Platform.Windows.WinRawMouse

Contains methods to register for and process mouse WM_INPUT messages.
Inheritance: IMouseDriver2
显示文件 Open project: andykorth/opentk Class Usage Examples

Public Methods

Method Description
GetState ( ) : MouseState
GetState ( int index ) : MouseState
ProcessMouseEvent ( RawInput rin ) : bool
RefreshDevices ( ) : void
SetPosition ( double x, double y ) : void
WinRawMouse ( IntPtr window ) : System

Private Methods

Method Description
FindRegistryKey ( string name ) : RegistryKey
GetDeviceName ( RawInputDeviceList dev ) : string
RegisterRawDevice ( IntPtr window, string device ) : void

Method Details

GetState() public method

public GetState ( ) : MouseState
return MouseState

GetState() public method

public GetState ( int index ) : MouseState
index int
return MouseState

ProcessMouseEvent() public method

public ProcessMouseEvent ( RawInput rin ) : bool
rin RawInput
return bool

RefreshDevices() public method

public RefreshDevices ( ) : void
return void

SetPosition() public method

public SetPosition ( double x, double y ) : void
x double
y double
return void

WinRawMouse() public method

public WinRawMouse ( IntPtr window ) : System
window System.IntPtr
return System