Cool, glad it works. "hat" means hatswitch, which are those little joystick-like things that are actually made with buttons.
.hc On May 14, 2007, at 2:59 PM, Kyle Klipowicz wrote: > I compiled and ran HID Explorer, and it is a bit crazy for the game > pad, calling it a 32 button, 2 hat joystick. I don't know what the > term 'hat' means, but perhaps is from me using a playstation2 to usb > adapter with 2 inputs? > > Hahaha ok after a quick brain fart, I understand what the problem was. > I had plugged the gamepad into the Player 2 socket of the adapter. > Switching to Player 1 solves the problem. > > Sorry about that! > > But this does make me wonder then how 2 gamepads will work... > > ~Kyle > > > On 5/14/07, Hans-Christoph Steiner <[EMAIL PROTECTED]> wrote: >> >> It could be a problem with [hid], but [hid] really just reports and >> translates events it gets from the OS. I haven't seen any bugs yet >> where it wasn't reporting events that it was in fact getting from the >> OS, but there is a first time for everything. >> >> In any case, getting the info from HID explorer will help to narrow >> down the problem. >> >> .hc >> >> On May 14, 2007, at 2:17 PM, Kyle Klipowicz wrote: >> >> > Yes, snes9x is a Mac OS X application running on the same >> machine, and >> > the button presses do work with it. I will check out your link, but >> > this seems like an hid issue. >> > >> > ~Kyle >> > >> > On 5/14/07, Hans-Christoph Steiner <[EMAIL PROTECTED]> wrote: >> >> >> >> 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 <[EMAIL PROTECTED]> 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 >> >> >> > >> >> >> > _______________________________________________ >> >> >> > [email protected] 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 >> >> >> >> >> >> >> > >> > >> > -- >> > >> > http://theradioproject.com >> > http://perhapsidid.blogspot.com >> > >> > (((())))(()()((((((((()())))()(((((((())()()())()))) >> > (())))))(()))))))))))))(((((((((((()()))))))))((()))) >> > ))(((((((((((())))())))))))))))))))__________ >> > _____())))))(((((((((((((()))))))))))_______ >> > ((((((())))))))))))((((((((000)))oOOOOOO >> >> >> >> --------------------------------------------------------------------- >> --- >> ---- >> >> If you are not part of the solution, you are part of the problem. >> >> >> > > > -- > > http://theradioproject.com > http://perhapsidid.blogspot.com > > (((())))(()()((((((((()())))()(((((((())()()())()))) > (())))))(()))))))))))))(((((((((((()()))))))))((()))) > ))(((((((((((())))())))))))))))))))__________ > _____())))))(((((((((((((()))))))))))_______ > ((((((())))))))))))((((((((000)))oOOOOOO ------------------------------------------------------------------------ ---- Access to computers should be unlimited and total. - the hacker ethic _______________________________________________ [email protected] mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
