From 8d8c3b56bd45eb78a3d70b61d00d0e14290e6178 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Sat, 28 Jun 2008 21:32:30 +0000 Subject: - the sixaxis external now builds with Pd-extended, and outputs the raw accelerometer data - for the rest of the data, use [hid] or [hidio] they happily coexist svn path=/trunk/externals/io/; revision=10116 --- sixaxis/sixaxis-help.pd | 193 ++++++++++++++++++++---------------------------- 1 file changed, 82 insertions(+), 111 deletions(-) (limited to 'sixaxis/sixaxis-help.pd') diff --git a/sixaxis/sixaxis-help.pd b/sixaxis/sixaxis-help.pd index 7b36070..b5fae4f 100644 --- a/sixaxis/sixaxis-help.pd +++ b/sixaxis/sixaxis-help.pd @@ -1,22 +1,7 @@ -#N canvas 292 101 633 730 10; -#X obj 129 267 sixaxis /dev/hidraw0; -#X obj 107 178 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 --1; -#X obj 18 178 metro 20; -#X obj 18 156 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 --1; -#X msg 38 156 stop; -#X obj 107 129 key; -#X obj 2 2 cnv 15 550 25 empty empty sixaxis 20 12 1 16 -228992 -66577 +#N canvas 197 95 565 482 10; +#X obj -71 5 cnv 15 550 25 empty empty sixaxis 20 12 1 16 -228992 -66577 0; -#X text 10 44 [sixaxis] 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 26 105 bang to get an update when polling is stopped.; -#X obj 107 149 sel 98; -#X text 153 149 <- (type 'b' for a bang); -#X obj 182 372 pddp/print; -#N canvas 743 25 411 235 see 0; +#N canvas 746 51 411 235 see 0; #N canvas 108 318 543 264 route 0; #X obj 27 14 inlet; #X obj 72 226 outlet; @@ -55,102 +40,88 @@ type vendorID productID; #X connect 17 8 13 0; #X connect 17 9 15 0; #X restore 117 70 pd route info; -#X obj 81 96 tgl 15 0 empty empty open 0 -6 0 8 -262144 -1 -1 1 1; +#X obj 221 96 tgl 15 0 empty empty open 0 -6 0 8 -262144 -1 -1 1 1 +; #X obj 110 22 inlet; #X obj 123 43 print info; -#X symbolatom 304 93 0 0 0 0 productID - -; -#X symbolatom 304 112 0 0 0 0 vendorID - -; -#X symbolatom 304 151 0 0 0 0 transport - -; -#X symbolatom 304 171 0 0 0 0 manufacturer - -; -#X symbolatom 186 192 0 0 0 0 product - -; -#X floatatom 97 140 5 0 0 0 device - -; -#X floatatom 97 162 5 0 0 0 poll - -; -#X symbolatom 304 131 0 0 0 0 type - -; -#X floatatom 97 182 5 0 0 0 total - -; +#X floatatom 156 140 5 0 0 0 device - -; +#X floatatom 156 162 5 0 0 0 poll - -; +#X floatatom 156 182 5 0 0 0 total - -; #X connect 0 0 1 0; -#X connect 0 1 9 0; -#X connect 0 2 10 0; -#X connect 0 3 12 0; -#X connect 0 4 8 0; -#X connect 0 5 7 0; -#X connect 0 6 6 0; -#X connect 0 7 11 0; -#X connect 0 8 5 0; -#X connect 0 9 4 0; +#X connect 0 1 4 0; +#X connect 0 2 5 0; +#X connect 0 3 6 0; #X connect 2 0 0 0; #X connect 2 0 3 0; -#X restore 246 297 pd see device info; -#X obj 130 210 tgl 30 0 empty empty empty 17 7 0 10 -4034 -1 -1 0 1 +#X restore 82 239 pd see device info; +#X obj -7 181 tgl 30 0 empty empty empty 17 7 0 10 -4034 -1 -1 0 1 ; -#X msg 179 222 info; -#X obj 181 348 spigot; -#X obj 216 328 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0 -1; -#X obj 249 334 spigot; -#X obj 282 327 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0 -1; -#X obj 250 354 print RAW; -#X obj 61 416 route position speed acceleration accelerometer; -#X obj 341 445 print WARNING_UNSUPPORTED_MESSAGES; -#X obj 43 528 unpack 0 0 0; -#X floatatom 31 549 7 0 0 0 - - -; -#X floatatom 77 549 7 0 0 0 - - -; -#X floatatom 123 549 7 0 0 0 - - -; -#X obj 77 484 unpack 0 0 0; -#X floatatom 65 505 7 0 0 0 - - -; -#X floatatom 111 505 7 0 0 0 - - -; -#X floatatom 157 505 7 0 0 0 - - -; -#X obj 197 461 unpack 0 0 0; -#X floatatom 185 482 7 0 0 0 - - -; -#X floatatom 231 482 7 0 0 0 - - -; -#X floatatom 277 482 7 0 0 0 - - -; -#X obj 252 513 track_min; -#X obj 325 517 track_max; -#X floatatom 324 539 9 0 0 0 - - -; -#X floatatom 252 539 9 0 0 0 - - -; -#X obj 22 573 track_min; -#X obj 95 577 track_max; -#X floatatom 94 599 9 0 0 0 - - -; -#X floatatom 22 599 9 0 0 0 - - -; -#X msg 176 551 bang; -#X msg 232 217 close; -#X connect 0 0 15 0; -#X connect 0 0 17 0; -#X connect 0 0 20 0; -#X connect 0 1 12 0; -#X connect 1 0 0 0; -#X connect 2 0 0 0; -#X connect 3 0 2 0; -#X connect 4 0 2 0; -#X connect 5 0 9 0; -#X connect 9 0 1 0; -#X connect 13 0 0 0; -#X connect 14 0 0 0; -#X connect 15 0 11 0; -#X connect 16 0 15 1; -#X connect 17 0 19 0; -#X connect 18 0 17 1; -#X connect 20 0 22 0; -#X connect 20 1 26 0; -#X connect 20 2 30 0; -#X connect 20 4 21 0; -#X connect 22 0 23 0; -#X connect 22 1 24 0; -#X connect 22 1 39 0; -#X connect 22 1 38 0; -#X connect 22 2 25 0; -#X connect 26 0 27 0; -#X connect 26 1 28 0; -#X connect 26 2 29 0; -#X connect 30 0 31 0; -#X connect 30 1 32 0; -#X connect 30 1 35 0; -#X connect 30 1 34 0; -#X connect 30 2 33 0; -#X connect 34 0 37 0; -#X connect 35 0 36 0; -#X connect 38 0 41 0; -#X connect 39 0 40 0; -#X connect 42 0 39 2; -#X connect 42 0 38 2; -#X connect 43 0 0 0; +#X msg 89 188 info; +#X msg 48 171 close; +#X obj -20 406 hsl 128 15 0 1 0 0 empty empty empty -2 -8 0 10 -262144 +-1 -1 5904 1; +#X obj 120 406 hsl 128 15 0 1 0 0 empty empty empty -2 -8 0 10 -262144 +-1 -1 8699 1; +#X obj 260 406 hsl 128 15 0 1 0 0 empty empty empty -2 -8 0 10 -262144 +-1 -1 5152 1; +#X obj 43 276 route accelerometer; +#X obj 43 308 route x y z; +#X msg 43 151 open 4; +#N canvas 162 133 570 420 serin 0; +#X obj 286 61 cnv 15 30 15 empty \$0-open-canvas 4 4 8 0 14 -233017 +-1 0; +#X obj 60 61 hradio 15 1 1 15 empty empty empty 0 -6 0 8 -225271 -1 +-1 4; +#X obj 60 13 inlet; +#X msg 200 202 label \$1; +#X obj 200 180 makefilename %d; +#X obj 59 108 int; +#X obj 59 337 outlet; +#X msg 201 306 set \$1 \$2; +#X obj 59 266 trigger bang anything; +#X obj 201 286 list; +#X msg 60 210 open \$1; +#X obj 200 225 send \$0-open-canvas; +#X connect 1 0 5 0; +#X connect 2 0 1 0; +#X connect 3 0 11 0; +#X connect 4 0 3 0; +#X connect 5 0 4 0; +#X connect 5 0 10 0; +#X connect 7 0 6 0; +#X connect 8 0 6 0; +#X connect 8 1 9 0; +#X connect 9 0 7 0; +#X connect 10 0 8 0; +#X coords 0 -1 1 1 257 17 1 60 60; +#X restore 43 129 pd serin; +#X obj 257 375 mapping/autoscale; +#X obj 117 375 mapping/autoscale; +#X obj -23 375 mapping/autoscale; +#X obj 43 216 sixaxis; +#N canvas 6 77 450 300 more 0; +#X text -17 56 By default \, [sixaxis] uses /dev/hidraw? for the device +name to get data from. You can override it using the [devname( message +\, like this:; +#X msg 30 154 devname /dev/my/strange/custom/hidraw; +#X restore -15 444 pd more on device names; +#X text -63 44 This objectclass supports getting accelerometer data +from the Sony SIXAXIS controller. Use this in conjuction with [hid] +to get all of the data from the SIXAXIS; +#X obj -59 83 pddp/pddplink http://www.pabr.org/sixlinux/sixlinux.en.html +-text Using the PlayStation 3 controller in Bluetooth mode with Linux +; +#X connect 2 0 15 0; +#X connect 3 0 15 0; +#X connect 4 0 15 0; +#X connect 8 0 9 0; +#X connect 9 0 14 0; +#X connect 9 1 13 0; +#X connect 9 2 12 0; +#X connect 10 0 15 0; +#X connect 11 0 10 0; +#X connect 12 0 7 0; +#X connect 13 0 6 0; +#X connect 14 0 5 0; +#X connect 15 0 8 0; +#X connect 15 1 1 0; -- cgit v1.2.1