-
Notifications
You must be signed in to change notification settings - Fork 3
/
readme
35 lines (28 loc) · 1.01 KB
/
readme
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
openFrameworks app to simulate mouse events ---
currently only for OSX, 'mouseControl' class uses cocoa to create quartz events
from C++ (http://openframeworks.cc)
Quartz Event Services Reference:
http://developer.apple.com/library/mac/#documentation/Carbon/Reference/QuartzEventServicesRef/Reference/reference.html
working:
- move mouse
- left button press/release
- left button drag
- right button press/release
needs:
- mouse events when oF app is not in focus
- windows and linux methods
basic use:
- use ARROW keys to move mouse
- press '1' to left click
- press and hold '1' while move to drag
- press '2' to right click
methods:
void move(ofPoint myMousePosition);
void leftButtonUp(ofPoint myMousePosition);
void leftButtonDown(ofPoint myMousePosition);
void rightButtonUp(ofPoint myMousePosition);
void rightButtonDown(ofPoint myMousePosition);
void leftMouseDragged(ofPoint myMousePosition);
void rightMouseDragged(ofPoint myMousePosition);
bool getLeftButton();
bool getRightButton();