/usr/lib/pd/extra/hid/joystick.pd is in pd-hid 0.7-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 | #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;
#X obj 380 342 outlet;
#X obj 446 317 outlet;
#X text 132 244 codes (0=X 1=Y 6=throttle 7=rudder \, 16=hat0X \, 17=hat0Y)
;
#X obj 625 262 outlet;
#X obj 157 107 hid \$1;
#X obj 183 468 outlet;
#X obj 249 428 outlet;
#X obj 315 387 outlet;
#X text 574 280 button code/value list;
#X text 171 509 X-axis;
#X text 232 468 Y-axis;
#X text 302 430 twist;
#X text 11 552 (C) Copyright 2004 Hans-Christoph Steiner <hans@at.or.at>
;
#X text 228 566 released under the GNU GPL;
#X text 424 566 $Author: eighthave $;
#X text 424 553 $Revision: 1.6 $$Date: 2005-06-04 15:51:39 $;
#X text 367 388 throttle/slider;
#X text 426 343 hat0x;
#X text 496 319 hat0y;
#X obj 315 368 mapping/autoscale 0 1;
#X obj 249 409 mapping/autoscale 0 1;
#X obj 183 449 mapping/autoscale 0 1;
#X obj 118 489 mapping/autoscale 0 1;
#X text 8 6 [joystick];
#X obj 159 139 route abs key ff;
#X msg 23 300 reset;
#N canvas 657 99 454 304 reset_on_open 0;
#X obj 37 19 inlet;
#X obj 37 226 outlet;
#X obj 37 116 select open;
#X obj 37 196 spigot 0;
#X obj 37 64 unpack symbol float;
#X obj 165 85 t f b;
#X obj 165 148 !=;
#X obj 181 126 f -1;
#X text 9 256 This object sends a bang to the outlet when getting an
[open( message that opens a new device but not when opening the existing
device.;
#X connect 0 0 4 0;
#X connect 2 0 3 0;
#X connect 3 0 1 0;
#X connect 4 0 2 0;
#X connect 4 1 5 0;
#X connect 5 0 6 0;
#X connect 5 0 7 1;
#X connect 5 1 7 0;
#X connect 6 0 3 1;
#X connect 7 0 6 1;
#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 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 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;
|