Revision: 10111 http://pure-data.svn.sourceforge.net/pure-data/?rev=10111&view=rev Author: eighthave Date: 2008-06-26 13:23:24 -0700 (Thu, 26 Jun 2008)
Log Message: ----------- cleaned up joystick examples for GNU/Linux
Modified Paths: -------------- branches/pd-extended/v0-40/externals/hcs/hid/examples/polar-joystick.pd branches/pd-extended/v0-40/externals/hcs/hid/examples/spiral-joystick.pd branches/pd-extended/v0-40/externals/hcs/hid/joystick.pd
Modified: branches/pd-extended/v0-40/externals/hcs/hid/examples/polar-joystick.pd =================================================================== --- branches/pd-extended/v0-40/externals/hcs/hid/examples/polar-joystick.pd 2008-06-26 16:42:56 UTC (rev 10110) +++ branches/pd-extended/v0-40/externals/hcs/hid/examples/polar-joystick.pd 2008-06-26 20:23:24 UTC (rev 10111) @@ -1,10 +1,10 @@ -#N canvas 217 177 472 478 10; -#X obj 163 119 tgl 25 0 empty empty start 1 12 1 9 -225271 -1 -1 1 +#N canvas 254 77 472 478 10; +#X obj 163 119 tgl 25 0 empty empty start 1 12 1 9 -225271 -1 -1 0 1; #X msg 226 138 open $1; -#X obj 226 118 hradio 15 1 1 8 $0-device-number empty choose_a_device +#X obj 226 118 hradio 15 1 1 15 $0-device-number empty choose_a_device 0 -6 1 9 -225271 -1 -1 0; -#X obj 200 118 nbx 1 14 -1e+37 1e+37 0 0 empty $0-device-number empty +#X obj 190 119 nbx 2 14 -1e+37 1e+37 0 0 empty $0-device-number empty 0 -6 0 14 -166441 -1 -1 0 256; #X msg 112 119 print; #X obj 177 285 mtof; @@ -21,7 +21,7 @@ #X text 40 429 (C) Copyright 2005 Hans-Christoph Steiner hans@at.or.at ; #X text 14 9 polar_joystick; -#X obj 164 172 hid/joystick 3; +#X obj 163 164 hid/joystick 3; #X obj 177 194 mapping/reverse; #X obj 102 216 mapping/polar; #X obj 77 264 hid/hid_cube; @@ -33,9 +33,9 @@ #X connect 2 0 1 0; #X connect 4 0 16 0; #X connect 5 0 6 0; -#X connect 6 0 7 0; +#X connect 6 0 7 1; #X connect 7 0 12 0; -#X connect 9 0 7 1; +#X connect 9 0 7 0; #X connect 10 0 9 0; #X connect 12 0 8 0; #X connect 12 1 8 1;
Modified: branches/pd-extended/v0-40/externals/hcs/hid/examples/spiral-joystick.pd =================================================================== --- branches/pd-extended/v0-40/externals/hcs/hid/examples/spiral-joystick.pd 2008-06-26 16:42:56 UTC (rev 10110) +++ branches/pd-extended/v0-40/externals/hcs/hid/examples/spiral-joystick.pd 2008-06-26 20:23:24 UTC (rev 10111) @@ -1,11 +1,9 @@ -#N canvas 370 302 478 473 10; +#N canvas 400 56 478 473 10; #X obj 134 99 tgl 25 0 empty empty start 1 12 1 9 -225271 -1 -1 1 1 ; #X msg 216 118 open $1; -#X obj 216 98 hradio 15 1 1 8 $0-device-number empty choose_a_device -0 -6 1 9 -225271 -1 -1 0; -#X obj 190 98 nbx 1 14 -1e+37 1e+37 0 0 empty $0-device-number empty -0 -6 0 14 -166441 -1 -1 0 256; +#X obj 180 98 nbx 2 14 -1e+37 1e+37 0 0 empty $0-device-number empty +0 -6 0 14 -166441 -1 -1 10 256; #X msg 81 99 print; #X obj 172 282 osc~; #X obj 105 345 *~; @@ -30,23 +28,25 @@ #X obj 65 242 hid/hid_cube; #X msg 167 118 print; #X obj 389 10 pddp/dsp; -#X connect 0 0 19 0; -#X connect 1 0 19 0; -#X connect 2 0 1 0; -#X connect 4 0 19 0; -#X connect 5 0 6 0; -#X connect 6 0 11 0; -#X connect 8 0 6 1; -#X connect 9 0 8 0; -#X connect 11 0 7 0; -#X connect 11 1 7 1; -#X connect 14 0 5 0; -#X connect 16 0 14 0; -#X connect 19 0 21 0; -#X connect 19 1 20 0; -#X connect 19 2 11 1; -#X connect 20 0 21 1; -#X connect 21 0 22 0; -#X connect 21 1 16 0; -#X connect 22 0 9 0; -#X connect 23 0 19 0; +#X obj 216 97 hradio 15 1 1 15 $0-device-number empty choose_a_device +0 -6 1 9 -225271 -1 -1 10; +#X connect 0 0 18 0; +#X connect 1 0 18 0; +#X connect 3 0 18 0; +#X connect 4 0 5 0; +#X connect 5 0 10 0; +#X connect 7 0 5 1; +#X connect 8 0 7 0; +#X connect 10 0 6 0; +#X connect 10 1 6 1; +#X connect 13 0 4 0; +#X connect 15 0 13 0; +#X connect 18 0 20 0; +#X connect 18 1 19 0; +#X connect 18 2 10 1; +#X connect 19 0 20 1; +#X connect 20 0 21 0; +#X connect 20 1 15 0; +#X connect 21 0 8 0; +#X connect 22 0 18 0; +#X connect 24 0 1 0;
Modified: branches/pd-extended/v0-40/externals/hcs/hid/joystick.pd =================================================================== --- branches/pd-extended/v0-40/externals/hcs/hid/joystick.pd 2008-06-26 16:42:56 UTC (rev 10110) +++ branches/pd-extended/v0-40/externals/hcs/hid/joystick.pd 2008-06-26 20:23:24 UTC (rev 10111) @@ -1,4 +1,4 @@ -#N canvas 181 117 827 593 10; +#N canvas 123 51 827 593 10; #X msg 176 64 start; #X msg 185 83 stop; #X obj 157 30 inlet; @@ -13,7 +13,6 @@ #X obj 183 468 outlet; #X obj 249 428 outlet; #X obj 315 387 outlet; -#X obj 301 91 print RAW; #X text 574 280 button code/value list; #X text 171 509 X-axis; #X text 232 468 Y-axis; @@ -58,25 +57,27 @@ #X restore 23 110 pd reset_on_open; #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 32 0; -#X connect 9 0 30 0; -#X connect 25 0 12 0; -#X connect 26 0 11 0; -#X connect 27 0 10 0; -#X connect 28 0 4 0; -#X connect 30 0 33 0; -#X connect 30 1 8 0; -#X connect 31 0 28 0; -#X connect 31 0 27 0; -#X connect 31 0 26 0; -#X connect 31 0 25 0; -#X connect 32 0 31 0; -#X connect 33 0 28 0; -#X connect 33 1 27 0; -#X connect 33 2 26 0; -#X connect 33 3 25 0; -#X connect 33 4 5 0; -#X connect 33 5 6 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 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;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.