C# Class NewTOAPIA.UI.MouseDevice

The MouseDevice class represents any device, physical or virtual, that is 'connected' to the system, and generally has mouse behaviors.
Inheritance: RawInputDevice
Mostrar archivo Open project: Wiladams/NewTOAPIA Class Usage Examples

Public Methods

Method Description
AttachToWindow ( IntPtr windowHandle ) : bool
Callback ( IntPtr hWnd, uint msg, IntPtr wParam, IntPtr lParam ) : int
DetachFromWindow ( ) : bool
GetFirstPhysicalMouse ( ) : MouseDevice
GetPhysicalMice ( ) : NewTOAPIA.UI.MouseDevice[]
MouseDevice ( IntPtr hDevice ) : System

Constructor taking a device handle. From this device handle very specific device information can be found.

OnNext ( MSG aMSG ) : void
Quit ( ) : bool
Run ( ) : bool
Start ( ) : bool
Stop ( ) : bool
ToString ( ) : string

Method Details

AttachToWindow() public method

public AttachToWindow ( IntPtr windowHandle ) : bool
windowHandle System.IntPtr
return bool

Callback() public method

public Callback ( IntPtr hWnd, uint msg, IntPtr wParam, IntPtr lParam ) : int
hWnd System.IntPtr
msg uint
wParam System.IntPtr
lParam System.IntPtr
return int

DetachFromWindow() public method

public DetachFromWindow ( ) : bool
return bool

GetFirstPhysicalMouse() public static method

public static GetFirstPhysicalMouse ( ) : MouseDevice
return MouseDevice

GetPhysicalMice() public static method

public static GetPhysicalMice ( ) : NewTOAPIA.UI.MouseDevice[]
return NewTOAPIA.UI.MouseDevice[]

MouseDevice() public method

Constructor taking a device handle. From this device handle very specific device information can be found.
public MouseDevice ( IntPtr hDevice ) : System
hDevice System.IntPtr
return System

OnNext() public method

public OnNext ( MSG aMSG ) : void
aMSG TOAPI.Types.MSG
return void

Quit() public method

public Quit ( ) : bool
return bool

Run() public method

public Run ( ) : bool
return bool

Start() public method

public Start ( ) : bool
return bool

Stop() public method

public Stop ( ) : bool
return bool

ToString() public method

public ToString ( ) : string
return string