Hey, this is good actually. I am knee deep in writing a cross-platform
HID I/O object and I am working now MacOS X with GNU/Linux to follow.
But I looked at DirectX and it looked ugly, so I decided not to mess
with it.
Its going to be structured very similarly to my [linuxevent] object, with the addition of taking input from the inlet in order to control haptic feedback, LEDs, etc. I chose to use the Linux scheme of representing events (time, type, code, and value) because its the cleanest after looking at libSDL, DirectX, Darwin HID Manager, USB HID, and Linux input event. The USB HID style stuff (i.e. DirectX and HID Manager) just seems needlessly complicated. Also the Linux input event headers are all GNU GPL, so I can easily include them, unlike DirectX or HID Manager.
Also, I just tested [hidin] with my Logitech Wingman Force 3D. I used
the PureData-0.37-2003.10.19.exe from puredata.org on WinXP. I got
input from the joystick, but it was strange. This may be because its a
force feedback joystick and I didn't install a specific driver for it.
Here's what was happening: all three axes had this format of data:
center
|- left end | right end -| 64..................127 0 0 0 0 0 0 0 0 0 0 0 0
So 127 was the center, in one direction, it went down to 64, everything the other direction was zero.
.hc
On Oct 14, 2004, at 6:54 PM, Olaf Matthes wrote:
Hi kids,
I finally finished a more or less stable and official release of the 'hidin' object for Pd on Windows. It allows to read in data from HID USB devices like gamepads and joysticks on Windows (and only Windows). Does not work with mice and keyboards due to some access restrictions on Windows. I just tested it with my gamepad and it seems to work. Hope it works with other devices too... if not: install Linux!
Get it here: http://www.akustische-kunst.org/puredata/hidin1.0test1.zip
best, Olaf (who wasn't there)
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://iem.at/cgi-bin/mailman/listinfo/pd-list
http://at.or.at/hans/