aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2004-11-04 00:17:49 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2004-11-04 00:17:49 +0000
commite997a439fdc98c86368506bf832f8b069fe5e4ee (patch)
tree354ff97064e79835c19b1662b76a6a80c3a5555a
parentf54912043ddd9c9737906823d265b69cecaa1fb3 (diff)
created general mouse object for rapid prototyping and beginners
svn path=/trunk/externals/hcs/hid/; revision=2204
-rw-r--r--doc/mouse-help.pd44
-rw-r--r--mouse.pd47
2 files changed, 91 insertions, 0 deletions
diff --git a/doc/mouse-help.pd b/doc/mouse-help.pd
new file mode 100644
index 0000000..79f07a8
--- /dev/null
+++ b/doc/mouse-help.pd
@@ -0,0 +1,44 @@
+#N canvas 127 178 668 433 10;
+#X symbolatom 211 183 0 0 0 0 - - -;
+#X obj 178 21 tgl 25 0 empty empty empty 0 -6 0 8 -225271 -1 -1 1 1
+;
+#X floatatom 287 185 5 0 0 0 - - -;
+#X floatatom 168 184 5 0 0 3 wheel - -;
+#X floatatom 113 184 7 0 0 3 Y - -;
+#X floatatom 59 184 7 0 0 3 X - -;
+#X obj 178 76 mouse 4;
+#X obj 28 294 tgl 25 0 empty empty empty 0 -6 0 8 -195568 -1 -1 0 1
+;
+#X obj 108 294 tgl 25 0 empty empty empty 0 -6 0 8 -195568 -1 -1 0
+1;
+#X obj 188 294 tgl 25 0 empty empty empty 0 -6 0 8 -195568 -1 -1 0
+1;
+#X obj 28 271 route btn_left btn_middle btn_right;
+#X text 26 250 the standard three buttons;
+#X obj 268 323 tgl 25 0 empty empty empty 0 -6 0 8 -195568 -1 -1 0
+1;
+#X obj 342 323 tgl 25 0 empty empty empty 0 -6 0 8 -195568 -1 -1 0
+1;
+#X obj 417 323 tgl 25 0 empty empty empty 0 -6 0 8 -195568 -1 -1 0
+1;
+#X obj 491 323 tgl 25 0 empty empty empty 0 -6 0 8 -195568 -1 -1 0
+1;
+#X obj 566 323 tgl 25 0 empty empty empty 0 -6 0 8 -195568 -1 -1 0
+1;
+#X obj 268 295 route btn_side btn_extra btn_forward btn_back btn_task
+;
+#X connect 1 0 6 0;
+#X connect 6 0 5 0;
+#X connect 6 1 4 0;
+#X connect 6 2 3 0;
+#X connect 6 3 0 0;
+#X connect 6 4 2 0;
+#X connect 10 0 7 0;
+#X connect 10 1 8 0;
+#X connect 10 2 9 0;
+#X connect 10 3 17 0;
+#X connect 17 0 12 0;
+#X connect 17 1 13 0;
+#X connect 17 2 14 0;
+#X connect 17 3 15 0;
+#X connect 17 4 16 0;
diff --git a/mouse.pd b/mouse.pd
new file mode 100644
index 0000000..d1d1dc6
--- /dev/null
+++ b/mouse.pd
@@ -0,0 +1,47 @@
+#N canvas 305 189 689 434 10;
+#X obj 125 38 inlet;
+#X obj 5 346 outlet;
+#X obj 110 346 outlet;
+#X obj 220 346 outlet;
+#X obj 500 347 outlet;
+#X obj 586 347 outlet;
+#X msg 355 119 open \$1;
+#X obj 356 94 makefilename mouse%d;
+#X obj 356 68 f \$1;
+#X obj 356 44 loadbang;
+#X text 4 364 X;
+#X text 115 369 Y;
+#X text 222 367 wheel;
+#X text 485 368 button code;
+#X text 574 368 button value;
+#X obj 125 155 route ev_rel ev_key;
+#X obj 500 238 unpack s f;
+#X msg 187 84 open \$1;
+#X obj 187 61 f \$1;
+#X obj 187 37 loadbang;
+#X obj 125 115 hid;
+#X obj 5 283 autoscale -1 1;
+#X obj 110 283 autoscale -1 1;
+#X obj 220 284 autoscale -1 1;
+#X obj 67 233 route rel_x rel_y rel_wheel;
+#X obj 271 258 print MOUSE_UNIMPLEMENTED_EVENT;
+#X connect 0 0 20 0;
+#X connect 7 0 6 0;
+#X connect 8 0 7 0;
+#X connect 9 0 8 0;
+#X connect 15 0 24 0;
+#X connect 15 1 16 0;
+#X connect 15 2 25 0;
+#X connect 16 0 4 0;
+#X connect 16 1 5 0;
+#X connect 17 0 20 0;
+#X connect 18 0 17 0;
+#X connect 19 0 18 0;
+#X connect 20 0 15 0;
+#X connect 21 0 1 0;
+#X connect 22 0 2 0;
+#X connect 23 0 3 0;
+#X connect 24 0 21 0;
+#X connect 24 1 22 0;
+#X connect 24 2 23 0;
+#X connect 24 3 25 0;