-
Notifications
You must be signed in to change notification settings - Fork 0
/
hid-example.pd
91 lines (91 loc) · 2.63 KB
/
hid-example.pd
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
#N canvas 533 151 941 735 12;
#X obj 434 89 hid;
#X msg 502 105 list;
#X msg 503 145 list vendorid 1;
#X msg 502 270 list usage_page 1;
#X msg 503 294 list usage 2;
#X msg 503 318 list usage_page 1 usage 2;
#X msg 504 354 list joystick;
#X msg 505 378 list mouse;
#X msg 507 499 open mouse;
#X msg 512 563 close;
#X msg 511 703 poll 0;
#X obj 512 634 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144
-1 -1;
#X msg 504 169 list productid 2;
#X msg 504 194 list serial 0vsf-dfsd-sdg123;
#X msg 505 221 list vendorid 1 productid 2 serial 123-456;
#X msg 508 525 open joystick;
#X msg 505 456 open vendorid 1 productid 2 serial 123-345;
#X text 512 601 output all available output values;
#X text 494 69 list all devices or search for particular criteria (any
combination possible);
#X text 504 656 automatically poll for values every N ms and turn off
with zero value;
#X text 505 432 open FIRST device matching criteria and close again..
;
#X text 29 22 USB HID PD external requires system libusb and hidapi
compatibility https://github.com/tschiemer/hid-pd-external;
#X msg 511 676 poll 1;
#X floatatom 193 423 5 0 0 0 - - -;
#X floatatom 194 444 5 0 0 0 - - -;
#X floatatom 194 464 5 0 0 0 - - -;
#X floatatom 194 485 5 0 0 0 - - -;
#X floatatom 194 507 5 0 0 0 - - -;
#X obj 103 129 route device opened closed value;
#X obj 57 174 print device;
#X obj 157 218 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 1
1;
#X msg 158 175 1;
#X msg 214 175 0;
#X obj 170 255 route 1 9 5;
#X obj 192 297 print button;
#X text 25 384 Generic controls (1);
#X text 139 424 x (48);
#X text 139 446 y (49);
#X text 132 467 Rz (53);
#X text 104 486 Slider (54);
#X text 111 508 Wheel (56);
#X text 96 296 button (9);
#X obj 194 323 print gamepad;
#X text 90 320 gamepad (5);
#X floatatom 195 530 5 0 0 0 - - -;
#X obj 193 385 route 48 49 53 54 56 57;
#X text 75 532 Hat Switch (57);
#X obj 195 350 print other_user_page;
#X obj 272 502 print other_usage;
#X text 75 218 open ?;
#X connect 0 0 28 0;
#X connect 1 0 0 0;
#X connect 2 0 0 0;
#X connect 3 0 0 0;
#X connect 4 0 0 0;
#X connect 5 0 0 0;
#X connect 6 0 0 0;
#X connect 7 0 0 0;
#X connect 8 0 0 0;
#X connect 9 0 0 0;
#X connect 10 0 0 0;
#X connect 11 0 0 0;
#X connect 12 0 0 0;
#X connect 13 0 0 0;
#X connect 14 0 0 0;
#X connect 15 0 0 0;
#X connect 22 0 0 0;
#X connect 28 0 29 0;
#X connect 28 1 31 0;
#X connect 28 2 32 0;
#X connect 28 3 33 0;
#X connect 31 0 30 0;
#X connect 32 0 30 0;
#X connect 33 0 45 0;
#X connect 33 1 34 0;
#X connect 33 2 42 0;
#X connect 33 3 47 0;
#X connect 45 0 23 0;
#X connect 45 1 24 0;
#X connect 45 2 25 0;
#X connect 45 3 26 0;
#X connect 45 4 27 0;
#X connect 45 5 44 0;
#X connect 45 6 48 0;