[PD-cvs] externals/hcs/hid mouse.pd,1.5,1.6

Hans-Christoph Steiner eighthave at users.sourceforge.net
Fri Jun 10 22:16:48 CEST 2005


Update of /cvsroot/pure-data/externals/hcs/hid
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv933

Modified Files:
	mouse.pd 
Log Message:

preliminary sketch for making [mouse] output 0,0 when no activity.  the OS
delivers no data when the mouse isn't moving, this makes it very difficult to
use the relative axes data as a controller since the last value would be the
last time the mouse moved, so the parameter being controlled by a relative
axis will stick at the last value when the mouse is still.


Index: mouse.pd
===================================================================
RCS file: /cvsroot/pure-data/externals/hcs/hid/mouse.pd,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** mouse.pd	20 May 2005 20:01:11 -0000	1.5
--- mouse.pd	10 Jun 2005 20:16:45 -0000	1.6
***************
*** 1,45 ****
! #N canvas 212 125 743 568 10;
! #X obj 60 18 inlet;
! #X obj 5 471 outlet;
! #X obj 139 471 outlet;
! #X obj 372 472 outlet;
! #X obj 500 472 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 494 X;
! #X text 144 494 Y;
! #X text 374 493 wheel;
! #X msg 187 84 open \$1;
! #X obj 187 61 f \$1;
! #X obj 187 37 loadbang;
! #X obj 5 338 autoscale -1 1;
! #X obj 139 338 autoscale -1 1;
! #X obj 67 288 route rel_x rel_y rel_wheel;
! #X obj 328 313 print MOUSE_UNIMPLEMENTED_EVENT;
! #X text 343 139 this is for once this feature is implemented;
! #X obj 125 180 hid \$1;
! #X obj 125 210 route rel key;
! #X text 484 493 button code/value list;
! #X text 1 512 (C) Copyright 2004 Hans-Christoph Steiner <hans at at.or.at>
  ;
! #X text 218 526 released under the GNU GPL;
! #X text 414 526 $Author$;
! #X text 414 513 $Revision$;
! #X msg 153 422 0;
! #X obj 153 401 delay 50;
! #X obj 60 63 route poll;
! #X msg 140 151 poll \$1;
! #X obj 60 86 s \$0-poll;
! #X obj 204 380 r \$0-poll;
! #X obj 140 131 r \$0-poll;
! #X obj 153 379 bang;
! #X msg 13 422 0;
! #X obj 13 401 delay 50;
! #X obj 64 380 r \$0-poll;
! #X obj 13 379 bang;
! #X text 32 436 zero when no motion;
! #X connect 0 0 29 0;
  #X connect 6 0 5 0;
  #X connect 7 0 6 0;
--- 1,55 ----
! #N canvas 212 125 775 600 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 msg 425 119 open \$1;
! #X obj 426 94 makefilename mouse%d;
! #X obj 426 68 f \$1;
! #X obj 426 44 loadbang;
! #X text 24 544 X;
! #X text 184 544 Y;
! #X text 444 493 wheel;
! #X msg 257 84 open \$1;
! #X obj 257 61 f \$1;
! #X obj 257 37 loadbang;
! #X obj 25 323 autoscale -1 1;
! #X obj 179 323 autoscale -1 1;
! #X obj 137 288 route rel_x rel_y rel_wheel;
! #X obj 398 313 print MOUSE_UNIMPLEMENTED_EVENT;
! #X text 413 139 this is for once this feature is implemented;
! #X obj 195 180 hid \$1;
! #X obj 195 210 route rel key;
! #X text 554 493 button code/value list;
! #X text 71 562 (C) Copyright 2004 Hans-Christoph Steiner <hans at at.or.at>
  ;
! #X text 288 576 released under the GNU GPL;
! #X text 484 576 $Author$;
! #X text 484 563 $Revision$;
! #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;
! #X obj 100 131 r \$0-poll;
! #X obj 213 359 bang;
! #X msg 33 472 0;
! #X text 41 489 zero when no motion;
! #X obj 43 48 loadbang;
! #X msg 43 71 25;
! #X obj 213 401 delay;
! #X obj 207 444 metro;
! #X msg 213 422 1;
! #X msg 185 422 0;
! #X obj 109 357 r \$0-poll;
! #X obj 63 359 bang;
! #X obj 63 401 delay;
! #X obj 57 444 metro;
! #X msg 63 422 1;
! #X msg 35 422 0;
! #X obj 108 378 * 2;
! #X obj 258 378 * 2;
! #X connect 0 0 28 0;
  #X connect 6 0 5 0;
  #X connect 7 0 6 0;
***************
*** 48,54 ****
  #X connect 14 0 13 0;
  #X connect 15 0 1 0;
! #X connect 15 0 38 0;
  #X connect 16 0 2 0;
! #X connect 16 0 34 0;
  #X connect 17 0 15 0;
  #X connect 17 1 16 0;
--- 58,64 ----
  #X connect 14 0 13 0;
  #X connect 15 0 1 0;
! #X connect 15 0 43 0;
  #X connect 16 0 2 0;
! #X connect 16 0 33 0;
  #X connect 17 0 15 0;
  #X connect 17 1 16 0;
***************
*** 58,70 ****
  #X connect 21 1 4 0;
  #X connect 27 0 2 0;
! #X connect 28 0 27 0;
! #X connect 29 0 31 0;
! #X connect 29 1 20 0;
! #X connect 30 0 20 0;
! #X connect 32 0 28 1;
! #X connect 33 0 30 0;
! #X connect 34 0 28 0;
! #X connect 35 0 1 0;
! #X connect 36 0 35 0;
! #X connect 37 0 36 1;
! #X connect 38 0 36 0;
--- 68,94 ----
  #X connect 21 1 4 0;
  #X connect 27 0 2 0;
! #X connect 28 0 30 0;
! #X connect 28 1 20 0;
! #X connect 29 0 20 0;
! #X connect 31 0 49 0;
! #X connect 32 0 29 0;
! #X connect 33 0 38 0;
! #X connect 33 0 41 0;
! #X connect 34 0 1 0;
! #X connect 36 0 37 0;
! #X connect 37 0 30 0;
! #X connect 38 0 40 0;
! #X connect 39 0 27 0;
! #X connect 40 0 39 0;
! #X connect 41 0 39 0;
! #X connect 42 0 48 0;
! #X connect 43 0 44 0;
! #X connect 43 0 47 0;
! #X connect 44 0 46 0;
! #X connect 45 0 34 0;
! #X connect 46 0 45 0;
! #X connect 47 0 45 0;
! #X connect 48 0 44 1;
! #X connect 48 0 45 1;
! #X connect 49 0 38 1;
! #X connect 49 0 39 1;





More information about the Pd-cvs mailing list