aboutsummaryrefslogtreecommitdiff
path: root/linuxevent-help.pd
diff options
context:
space:
mode:
Diffstat (limited to 'linuxevent-help.pd')
-rw-r--r--linuxevent-help.pd70
1 files changed, 48 insertions, 22 deletions
diff --git a/linuxevent-help.pd b/linuxevent-help.pd
index 1580638..9b0971a 100644
--- a/linuxevent-help.pd
+++ b/linuxevent-help.pd
@@ -1,24 +1,20 @@
-#N canvas 547 51 569 453 10;
+#N canvas 287 167 569 543 10;
#X floatatom 241 326 5 0 0 3 code - -;
#X floatatom 305 326 5 0 0 3 value - -;
#X floatatom 177 326 4 0 0 3 type - -;
#X floatatom 104 326 9 0 0 3 time - -;
-#X msg 164 199 start;
-#X msg 165 221 stop;
+#X msg 172 202 start;
+#X msg 173 224 stop;
#X obj 114 303 linuxevent /dev/input/event0;
-#X obj 114 158 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
+#X obj 114 184 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
-#X text 134 158 bang to get an update;
-#X text 212 211 start/stop polling;
-#X obj 25 158 metro 20;
-#X text 236 260 time between polls (ms);
-#X obj 25 136 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
+#X obj 25 184 metro 20;
+#X text 293 260 time between polls (ms);
+#X obj 25 162 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
-#X msg 45 136 stop;
-#X msg 169 260 delay 20;
-#X obj 114 109 key;
-#X obj 114 129 select 98;
-#X text 187 129 <- type 'b' for a bang;
+#X msg 45 162 stop;
+#X msg 226 260 delay 20;
+#X obj 114 135 key;
#N canvas 278 328 611 524 Event_Codes 0;
#X text 28 48 (For a complete listing of Linux Input Events \, see
/usr/include/linux/input.h.);
@@ -180,8 +176,26 @@ This object will report them when it opens a device.;
#X text 17 50 [linuxevent] outputs raw events from the Linux Event
system. It is used for access the output of various Human Interface
Devices \, like mice \, joysticks \, tablets \, etc.;
-#X text 62 424 Here's an example for using a joystick:;
-#X obj 366 423 linuxevent-joystick;
+#X text 346 18 related HID objects:;
+#X obj 497 17 linuxhid;
+#X text 33 111 bang to get an update when polling is stopped.;
+#X msg 236 201 poll;
+#X msg 236 223 nopoll;
+#X text 153 183 start/stop polling (synonyms for the same thing);
+#X obj 114 155 sel 98;
+#X text 160 155 <- (type 'b' for a bang);
+#X text 15 413 Here's an example for using a joystick:;
+#X msg 72 441 start;
+#X msg 116 441 stop;
+#X obj 82 469 linuxevent-joystick /dev/input/event1;
+#X floatatom 336 498 2 0 0 3 button# - -;
+#X floatatom 393 497 2 0 0 3 button_value - -;
+#X floatatom 82 498 5 0 0 3 y-axis - -;
+#X floatatom 35 498 5 0 0 3 x-axis - -;
+#X floatatom 181 499 3 0 0 3 hat-X - -;
+#X floatatom 227 499 3 0 0 3 hat-Y - -;
+#X floatatom 131 499 5 0 0 3 twist - -;
+#X floatatom 270 498 5 0 0 3 throttle - -;
#X connect 4 0 6 0;
#X connect 5 0 6 0;
#X connect 6 0 3 0;
@@ -189,9 +203,21 @@ Devices \, like mice \, joysticks \, tablets \, etc.;
#X connect 6 2 0 0;
#X connect 6 3 1 0;
#X connect 7 0 6 0;
-#X connect 10 0 6 0;
-#X connect 12 0 10 0;
-#X connect 13 0 10 0;
-#X connect 14 0 6 0;
-#X connect 15 0 16 0;
-#X connect 16 0 7 0;
+#X connect 8 0 6 0;
+#X connect 10 0 8 0;
+#X connect 11 0 8 0;
+#X connect 12 0 6 0;
+#X connect 13 0 26 0;
+#X connect 23 0 6 0;
+#X connect 24 0 6 0;
+#X connect 26 0 7 0;
+#X connect 29 0 31 0;
+#X connect 30 0 31 0;
+#X connect 31 0 35 0;
+#X connect 31 1 34 0;
+#X connect 31 2 38 0;
+#X connect 31 3 36 0;
+#X connect 31 4 37 0;
+#X connect 31 5 39 0;
+#X connect 31 6 32 0;
+#X connect 31 7 33 0;