Пример #1
0
 public static void DeviceChange(Events e, IntPtr data)
 // Device changes like those affect all windows.
 => PInvoke.CallHooks(Messages.WM_DEVICECHANGE, (IntPtr)e, data, allWindows: true);
Пример #2
0
 public static void Wheel(int scroll)
 // Damn, FNA is even accurate to WHEEL_DELTA being 120!
 => PInvoke.CallHooks(Messages.WM_MOUSEWHEEL, (IntPtr)(scroll << 16), IntPtr.Zero);
Пример #3
0
 public static void XMBUp(int mb)
 => PInvoke.CallHooks(Messages.WM_XBUTTONUP, (IntPtr)(mb << 16), IntPtr.Zero);
Пример #4
0
 public static void MMBUp()
 => PInvoke.CallHooks(Messages.WM_MBUTTONUP, IntPtr.Zero, IntPtr.Zero);
Пример #5
0
 public static void MMBDown()
 => PInvoke.CallHooks(Messages.WM_MBUTTONDOWN, IntPtr.Zero, IntPtr.Zero);
Пример #6
0
 public static void Moved()
 => PInvoke.CallHooks(Messages.WM_MOUSEMOVE, IntPtr.Zero, IntPtr.Zero);