aboutsummaryrefslogtreecommitdiff
path: root/doc/joystick-help.pd
blob: ec162b995ae00048dbaf351e3c6cc69f45ee8888 (plain)
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
#N canvas 248 419 666 464 10;
#X obj 168 91 tgl 25 0 empty empty empty 0 -6 0 8 -225271 -1 -1 0 1
;
#X floatatom 63 234 7 0 0 3 Y-axis - -;
#X floatatom 9 234 7 0 0 3 X-axis - -;
#X obj 212 324 tgl 25 0 empty empty empty 0 -6 0 8 -195568 -1 -1 0
1;
#X obj 252 324 tgl 25 0 empty empty empty 0 -6 0 8 -195568 -1 -1 0
1;
#X obj 293 324 tgl 25 0 empty empty empty 0 -6 0 8 -195568 -1 -1 0
1;
#X obj 334 324 tgl 25 0 empty empty empty 0 -6 0 8 -195568 -1 -1 0
1;
#X floatatom 123 234 7 0 0 3 twist - -;
#X floatatom 182 234 5 0 0 3 throttle - -;
#X obj 375 324 tgl 25 0 empty empty empty 0 -6 0 8 -195568 -1 -1 0
1;
#X obj 416 324 tgl 25 0 empty empty empty 0 -6 0 8 -195568 -1 -1 0
1;
#X obj 456 324 tgl 25 0 empty empty empty 0 -6 0 8 -195568 -1 -1 0
1;
#X obj 497 324 tgl 25 0 empty empty empty 0 -6 0 8 -195568 -1 -1 0
1;
#X obj 538 324 tgl 25 0 empty empty empty 0 -6 0 8 -195568 -1 -1 0
1;
#X obj 579 324 tgl 25 0 empty empty empty 0 -6 0 8 -195568 -1 -1 0
1;
#X symbolatom 335 234 6 0 0 3 code - -;
#X floatatom 400 234 5 0 0 3 value - -;
#X text 345 199 buttons;
#X obj 2 2 cnv 15 650 20 empty empty [joystick] 2 11 1 18 -233017 -66577
0;
#X msg 215 93 open 1;
#X text 1 412 (C) Copyright 2004 Hans-Christoph Steiner <hans@at.or.at>
;
#X text 218 426 released under the GNU GPL;
#X text 414 426 $Author: eighthave $;
#X text 414 413 $Revision: 1.9 $;
#X obj 239 375 pddp_open all_about_hid;
#X text 130 376 For more info:;
#X floatatom 245 234 5 0 0 3 hat0X - -;
#X floatatom 288 234 5 0 0 3 hat0Y - -;
#X msg 220 112 open 3;
#X obj 212 291 route btn_0 btn_1 btn_2 btn_3 btn_4 btn_5 btn_6 btn_7
btn_8 btn_9;
#X msg 225 131 open 5;
#X obj 168 154 joystick 0;
#N canvas 674 327 446 497 joystick_noise 0;
#X obj 73 25 inlet;
#X obj 219 426 dac~;
#X obj 168 376 *~;
#X obj 201 398 linearpan~;
#X obj 70 168 hid_invert;
#X obj 70 242 mtof;
#X obj 168 313 osc~;
#X msg 57 88 \; pd dsp \$1;
#X obj 70 193 hid_squareroot;
#X obj 287 11 inlet;
#X obj 203 323 hid_log;
#X obj 180 65 joystick 0;
#X obj 168 287 +~;
#X obj 238 212 *~;
#X obj 238 179 osc~;
#X obj 304 143 * 300;
#X obj 238 143 * 200;
#X obj 304 123 hid_square;
#X obj 304 179 +;
#X obj 238 123 hid_exp;
#X obj 203 360 line~;
#X msg 203 342 \$1 5;
#X obj 70 218 notescale 40 80;
#X connect 0 0 7 0;
#X connect 0 0 11 0;
#X connect 2 0 3 0;
#X connect 3 0 1 0;
#X connect 3 1 1 1;
#X connect 4 0 8 0;
#X connect 5 0 12 0;
#X connect 6 0 2 0;
#X connect 8 0 22 0;
#X connect 9 0 11 0;
#X connect 10 0 21 0;
#X connect 11 0 19 0;
#X connect 11 1 4 0;
#X connect 11 1 17 0;
#X connect 11 2 3 1;
#X connect 11 3 10 0;
#X connect 12 0 6 0;
#X connect 13 0 12 1;
#X connect 14 0 13 0;
#X connect 15 0 18 0;
#X connect 16 0 14 0;
#X connect 16 0 18 1;
#X connect 17 0 15 0;
#X connect 18 0 13 1;
#X connect 19 0 16 0;
#X connect 20 0 2 1;
#X connect 21 0 20 0;
#X connect 22 0 5 0;
#X restore 440 155 pd joystick_noise;
#X obj 440 92 tgl 25 0 empty empty empty 0 -6 0 8 -225271 -1 -1 1 1
;
#X text 333 73 Select your device and turn on to make noise:;
#X obj 619 3 pddp;
#X msg 503 125 open \$1;
#X obj 503 105 hradio 15 1 1 8 \$0-device-number empty choose_a_device
0 -6 1 9 -262144 -1 -1 0;
#X obj 477 105 nbx 1 14 -1e+37 1e+37 0 0 empty \$0-device-number empty
0 -6 0 14 -166441 -1 -1 0 256;
#X text 8 36 Use a joystick device with Pd. This object auto-calibrates
the output of axis data. Move each element of the device thru its full
range to calibrate it.;
#X obj 335 215 unpack s f;
#X obj 339 375 pddp_open all_about_hid_mapping;
#X text 422 177 (remember to calibrate all parts;
#X text 430 190 of the joystick first);
#X msg 394 120 print;
#X connect 0 0 31 0;
#X connect 19 0 31 0;
#X connect 28 0 31 0;
#X connect 29 0 3 0;
#X connect 29 1 4 0;
#X connect 29 2 5 0;
#X connect 29 3 6 0;
#X connect 29 4 9 0;
#X connect 29 5 10 0;
#X connect 29 6 11 0;
#X connect 29 7 12 0;
#X connect 29 8 13 0;
#X connect 29 9 14 0;
#X connect 30 0 31 0;
#X connect 31 0 2 0;
#X connect 31 1 1 0;
#X connect 31 2 7 0;
#X connect 31 3 8 0;
#X connect 31 4 26 0;
#X connect 31 5 27 0;
#X connect 31 6 29 0;
#X connect 31 6 40 0;
#X connect 33 0 32 0;
#X connect 36 0 32 1;
#X connect 37 0 36 0;
#X connect 40 0 15 0;
#X connect 40 1 16 0;
#X connect 44 0 32 0;