forked from Bediveren/RemoteControllerCsharp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMouse.cs
More file actions
21 lines (19 loc) · 660 Bytes
/
Mouse.cs
File metadata and controls
21 lines (19 loc) · 660 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.InteropServices;
namespace RemoteControl
{
class Mouse
{
[DllImport("user32.dll")]
public static extern void mouse_event(int dwFlags, int dx, int dy, int cButtons, int dwExtraInfo);
public static int MOUSEEVENTF_LEFTDOWN = 0x02;
public static int MOUSEEVENTF_LEFTUP = 0x04;
public static int MOUSEEVENTF_RIGHTDOWN = 0x0008;
public static int MOUSEEVENTF_RIGHTUP = 0x0010;
public static int MOUSEEVENTF_MIDDLEDOWN = 0x20;
public static int MOUSEEVENTF_MIDDLEUP = 0x40;
}
}