-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathmouse.py
22 lines (18 loc) · 906 Bytes
/
mouse.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
from hrdc.usage import *
from hrdc.descriptor import *
mouse = Collection(Collection.Application, desktop.Mouse,
Value(Value.Input, desktop.X, 8,
flags = Value.Variable | Value.Relative,
logicalMin = -127, logicalMax = 127),
Value(Value.Input, desktop.Y, 8,
flags = Value.Variable | Value.Relative,
logicalMin = -127, logicalMax = 127),
Value(Value.Input, button.Button(1), 1,
logicalMin = 0, logicalMax = 1),
Value(Value.Input, button.Button(2), 1,
logicalMin = 0, logicalMax = 1),
Value(Value.Input, button.Button(3), 1,
logicalMin = 0, logicalMax = 1),
)
if __name__ == "__main__":
compile_main(mouse)