Julian Peterson schrieb:
HCS--
What is the current status of HID on Windows? I vaguely remember
reading that it was in beta status, although I couldn't find it on
at.or.at...
I ask because I just finished a work which uses a joystick for input,
and I'd like to write documentation on how to run the program on various
platforms. I'm hoping HID is already incorporated into pd extended for
windows; if not I'll need to explore the joystick external...
AFAIK, [HID] is not ready yet, therefore:
The joystick external unfortunately doesn't support POV controls. For
axes and buttons it works fine, but you should note that the two
rightmost outlets (for the button events) send their values in the wrong
order (second-to-right comes before right outlet).
The attached abstraction shows you how you can handle this. It works for
any joystick with 4 axes, but can easily changed for others.
HTH
Urs
Thanks,
JP
PD-list@iem.at mailing list
UNSUBSCRIBE and account-management ->
http://lists.puredata.info/listinfo/pd-list
--
Urs Liska
Glümerstr. 5
D-79102 Freiburg
www.graft-music.com
www.suonomobile.de
[Pd 0.39.0, WinXP]
#N canvas 233 66 579 457 12;
#X obj 85 107 joystick;
#X text 9 6 Abstraction saitekEvo;
#X text 10 25 basic wrapper around the joystick module;
#X text 9 42 allows to patch for this joystick;
#X text 10 59 without it being actually attached;
#X obj 12 220 outlet;
#X obj 68 220 outlet;
#X obj 129 220 outlet;
#X obj 195 221 outlet;
#X obj 273 221 outlet;
#X text 68 242 UpDown;
#X text 12 258 LeftRight;
#X text 195 241 Twist;
#X text 131 258 Throttle;
#X obj 273 168 int;
#X obj 297 145 t b f;
#X text 14 372 Everytime this abstraction has been altered;
#X text 14 388 while the joystick is not attached;
#X text 13 404 the connections from the [joystick] have to be;
#X text 14 419 reconnected during next editing;
#X text 14 355 Attention:;
#X obj 273 194 pack f f;
#X text 267 244 ButtonNr and state;
#X text 306 267 Button events are transmitted;
#X text 306 281 as packed BtnNr/state messages;
#X obj 68 174 * -1;
#X obj 68 196 + 65535;
#X obj 128 170 * -1;
#X obj 128 192 + 65535;
#X text 14 310 UpDown and Throttle axes are reversed;
#X text 14 326 to transmit the expected orientation;
#X text 346 163 Correct object's unorthodox;
#X text 346 178 left-to-right ordering;
#X connect 0 0 5 0;
#X connect 0 1 25 0;
#X connect 0 2 27 0;
#X connect 0 3 8 0;
#X connect 0 4 14 1;
#X connect 0 5 15 0;
#X connect 14 0 21 0;
#X connect 15 0 14 0;
#X connect 15 1 21 1;
#X connect 21 0 9 0;
#X connect 25 0 26 0;
#X connect 26 0 6 0;
#X connect 27 0 28 0;
#X connect 28 0 7 0;