Are other applications getting the button presses? Is the SNES9X
emulator a Mac OS X application running on the same machine?
This is a useful app for testing HIDs:
http://developer.apple.com/samplecode/HID_Explorer/index.html
.hc
On May 14, 2007, at 2:08 PM, Kyle Klipowicz wrote:
Here is what [print( says:
hid_hid first_argument == &s_ [hid] setting device# to 0 first_argument == &s_ info: open 1 info: device 1
Device 0: 'Apple' 'Keyboard' version 0 @ location 0x02c30000 device type: keyboard usage page: 0x0001 usage: 0x0006 vendorID: 0x05ac productID: 0x0000 __________________________________________________ Device 1: 'Apple' 'Trackpad' version 0 @ location 0x03010000 device type: mouse usage page: 0x0001 usage: 0x0002 vendorID: 0x05ac productID: 0x0000 __________________________________________________ Device 2: 'Logitech' 'USB Mouse' version 1552 @ location 0x1b130000 device type: mouse usage page: 0x0001 usage: 0x0002 vendorID: 0x046d productID: 0xc00c __________________________________________________ Device 3: 'HuiJia ' 'USB GamePad' version 272 @ location 0x1b140000 device type: joystick usage page: 0x0001 usage: 0x0004 vendorID: 0x0e8f productID: 0x3013
[hid] found 9 elements:
TYPE CODE # EVENT NAME
rel rel_x 0 Miscellaneous Input, X-Axis rel rel_y 0 Miscellaneous Input, Y-Axis key btn_0 0 Button Input, Button #1 key btn_1 0 Button Input, Button #2 key btn_2 0 Button Input, Button #3 key btn_3 0 Button Input, Button #4 key btn_4 0 Button Input, Button #5 key btn_5 0 Button Input, Button #6 rel rel_wheel 0 Miscellaneous Input, Wheel
Sooooo, I attached a [print KYLE] to the left outlet, and then message [hid] with [device 3( and I get this: first_argument == &s_ info: open 1 info: device 3 KYLE: abs abs_z 128 KYLE: abs abs_rz 128 KYLE: abs abs_x 128 KYLE: abs abs_y 128
And then nothing else, no matter what buttons on the gamepad I press. The gamepad itself lights up, so is getting power, and it's listed by hid. It works (badly) at controlling Super Mario World on the SNES9X emulator, so I know the buttons work.
Any ideas or data collection you'd like for me to do?
~Kyle
On 5/14/07, Hans-Christoph Steiner hans@eds.org wrote:
When you click the [print( message, it should tell you which elements are supported and their type. Do you get any event at all when you press a button? Try hooking up a [print] to [hid] and see if you get anything when you click a button. They might report using non- standard labels.
.hc
On May 12, 2007, at 8:54 PM, Kyle Klipowicz wrote:
Ok, I've been trying the (semi)latest build (downloaded < 1 week
ago)
of pd-0.39.2-extended-rc2 for os x (phew!) and hid plays nice
with my
sidewinder joystic, computer keyboard, trackpad, and usb mouse---
but
although it recognizes my ddr dance pad, the button events do not register in the hid-help patch.
What's the best way to troubleshoot this?
~Kyle
--
http://theradioproject.com http://perhapsidid.blogspot.com
(((())))(()()((((((((()())))()(((((((())()()())()))) (())))))(()))))))))))))(((((((((((()()))))))))((()))) ))(((((((((((())))())))))))))))))))__________ _____())))))(((((((((((((()))))))))))_______ ((((((())))))))))))((((((((000)))oOOOOOO
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/ listinfo/pd-list
I spent 33 years and four months in active military service and during that period I spent most of my time as a high class muscle man for Big Business, for Wall Street and the bankers. - General Smedley Butler
--
http://theradioproject.com http://perhapsidid.blogspot.com
(((())))(()()((((((((()())))()(((((((())()()())()))) (())))))(()))))))))))))(((((((((((()()))))))))((()))) ))(((((((((((())))())))))))))))))))__________ _____())))))(((((((((((((()))))))))))_______ ((((((())))))))))))((((((((000)))oOOOOOO
As we enjoy great advantages from inventions of others, we should be
glad of an opportunity to serve others by any invention of ours; and
this we should do freely and generously. - Benjamin Franklin