aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--joystick.pd55
-rw-r--r--mouse.pd89
2 files changed, 75 insertions, 69 deletions
diff --git a/joystick.pd b/joystick.pd
index ef58f1a..4d567eb 100644
--- a/joystick.pd
+++ b/joystick.pd
@@ -1,6 +1,4 @@
-#N canvas 123 51 827 593 10;
-#X msg 176 64 start;
-#X msg 185 83 stop;
+#N canvas 123 51 723 589 10;
#X obj 157 30 inlet;
#X obj 287 160 print UNKNOWN_JOYSTICK_EVENT_TYPE;
#X obj 118 508 outlet;
@@ -58,26 +56,33 @@ device.;
#X obj 118 264 route abs_x abs_y abs_rz abs_throttle abs_hat0x abs_hat0y
;
#X obj 26 78 route float;
-#X connect 0 0 9 0;
-#X connect 1 0 9 0;
-#X connect 2 0 9 0;
-#X connect 2 0 33 0;
-#X connect 9 0 29 0;
-#X connect 24 0 12 0;
-#X connect 25 0 11 0;
-#X connect 26 0 10 0;
-#X connect 27 0 4 0;
-#X connect 29 0 32 0;
-#X connect 29 1 8 0;
-#X connect 30 0 27 0;
-#X connect 30 0 26 0;
+#X obj 256 34 loadbang;
+#X obj 256 58 float \$1;
+#X msg 224 84 open joystick \$1;
+#X obj 156 58 route open;
+#X connect 0 0 31 0;
+#X connect 0 0 35 0;
+#X connect 7 0 27 0;
+#X connect 22 0 10 0;
+#X connect 23 0 9 0;
+#X connect 24 0 8 0;
+#X connect 25 0 2 0;
+#X connect 27 0 30 0;
+#X connect 27 1 6 0;
+#X connect 28 0 25 0;
+#X connect 28 0 24 0;
+#X connect 28 0 23 0;
+#X connect 28 0 22 0;
+#X connect 29 0 28 0;
#X connect 30 0 25 0;
-#X connect 30 0 24 0;
-#X connect 31 0 30 0;
-#X connect 32 0 27 0;
-#X connect 32 1 26 0;
-#X connect 32 2 25 0;
-#X connect 32 3 24 0;
-#X connect 32 4 5 0;
-#X connect 32 5 6 0;
-#X connect 33 1 31 0;
+#X connect 30 1 24 0;
+#X connect 30 2 23 0;
+#X connect 30 3 22 0;
+#X connect 30 4 3 0;
+#X connect 30 5 4 0;
+#X connect 31 1 29 0;
+#X connect 32 0 33 0;
+#X connect 33 0 34 0;
+#X connect 34 0 7 0;
+#X connect 35 0 34 0;
+#X connect 35 1 7 0;
diff --git a/mouse.pd b/mouse.pd
index 29955eb..62def3e 100644
--- a/mouse.pd
+++ b/mouse.pd
@@ -1,10 +1,9 @@
-#N canvas 212 125 783 608 10;
+#N canvas 273 44 783 608 10;
#X obj 130 18 inlet;
#X obj 25 521 outlet;
#X obj 179 521 outlet;
#X obj 442 472 outlet;
#X obj 570 472 outlet;
-#X obj 246 48 f \$1;
#X obj 246 24 loadbang;
#X text 24 544 X;
#X text 184 544 Y;
@@ -21,7 +20,6 @@
#X text 484 576 $Author: eighthave $;
#X text 484 563 $Revision: 1.7 $;
#X msg 193 472 0;
-#X obj 130 63 route poll;
#X msg 100 151 poll \$1;
#X obj 100 106 s \$0-poll;
#X obj 259 357 r \$0-poll;
@@ -42,46 +40,49 @@
#X msg 35 422 0;
#X obj 108 378 * 2;
#X obj 258 378 * 2;
-#X msg 245 99 open mouse \$1;
+#X msg 246 134 open mouse \$1;
#X obj 195 180 hid;
#X msg 43 71 10;
-#X connect 0 0 21 0;
-#X connect 5 0 42 0;
-#X connect 6 0 5 0;
-#X connect 10 0 1 0;
-#X connect 10 0 35 0;
-#X connect 11 0 2 0;
-#X connect 11 0 26 0;
-#X connect 12 0 10 0;
-#X connect 12 1 11 0;
-#X connect 12 2 3 0;
-#X connect 14 0 12 0;
-#X connect 14 1 4 0;
-#X connect 20 0 2 0;
-#X connect 21 0 23 0;
-#X connect 21 1 43 0;
-#X connect 22 0 43 0;
-#X connect 24 0 41 0;
-#X connect 25 0 22 0;
-#X connect 26 0 30 0;
-#X connect 26 0 33 0;
-#X connect 27 0 1 0;
-#X connect 29 0 44 0;
-#X connect 30 0 32 0;
-#X connect 31 0 20 0;
-#X connect 32 0 31 0;
-#X connect 33 0 31 0;
-#X connect 34 0 40 0;
-#X connect 35 0 36 0;
-#X connect 35 0 39 0;
-#X connect 36 0 38 0;
-#X connect 37 0 27 0;
-#X connect 38 0 37 0;
-#X connect 39 0 37 0;
-#X connect 40 0 36 1;
-#X connect 40 0 37 1;
-#X connect 41 0 30 1;
-#X connect 41 0 31 1;
-#X connect 42 0 43 0;
-#X connect 43 0 14 0;
-#X connect 44 0 23 0;
+#X obj 130 63 route poll open;
+#X obj 246 48 float \$1;
+#X connect 0 0 43 0;
+#X connect 5 0 44 0;
+#X connect 9 0 1 0;
+#X connect 9 0 33 0;
+#X connect 10 0 2 0;
+#X connect 10 0 24 0;
+#X connect 11 0 9 0;
+#X connect 11 1 10 0;
+#X connect 11 2 3 0;
+#X connect 13 0 11 0;
+#X connect 13 1 4 0;
+#X connect 19 0 2 0;
+#X connect 20 0 41 0;
+#X connect 22 0 39 0;
+#X connect 23 0 20 0;
+#X connect 24 0 28 0;
+#X connect 24 0 31 0;
+#X connect 25 0 1 0;
+#X connect 27 0 42 0;
+#X connect 28 0 30 0;
+#X connect 29 0 19 0;
+#X connect 30 0 29 0;
+#X connect 31 0 29 0;
+#X connect 32 0 38 0;
+#X connect 33 0 34 0;
+#X connect 33 0 37 0;
+#X connect 34 0 36 0;
+#X connect 35 0 25 0;
+#X connect 36 0 35 0;
+#X connect 37 0 35 0;
+#X connect 38 0 34 1;
+#X connect 38 0 35 1;
+#X connect 39 0 28 1;
+#X connect 39 0 29 1;
+#X connect 40 0 41 0;
+#X connect 41 0 13 0;
+#X connect 42 0 21 0;
+#X connect 43 0 21 0;
+#X connect 43 1 40 0;
+#X connect 43 2 41 0;
+#X connect 44 0 40 0;