SDL joystick event from N64 controller adapter not recognized
I'm using a "HuiJia USB Gamepad" to connect a standard N64 controller to my computer over USB. I'm doing this so that I can play games using mupen64plus, which uses the SDL to get input. My problem has to do with the way the adapter deals with C button events. Apparently, the u/d and l/r C buttons are treated by the adapter as joystick axes, so joystick events are generated by using them. But, for some reason, these events aren't recognized by SDL.
It gets stranger - if I cat the output of /dev/input/event5, the event gets printed when a C button is pressed. Furthermore, when I configure SDL to use the /dev/input/event* devices rather than /dev/input/js0, the C buttons are recognized! (Though, this leads to a situation where the joystick can't be calibrated... go figure). So, I can either have a correctly calibrated joystick with no C buttons or a miscalibrated joystick with working C buttons. :( Does anyone have any idea what I can do about this situation? The best outcome would be to force the C button joystick events to appear when using /dev/input/js0. Device as it appears in the output of lsusb: Code:
Bus 005 Device 003: ID 0e8f:3013 GreenAsia Inc. http://www.amazon.com/May-Flash-Cont.../dp/B002B9FIUU Thanks! |
Have you tried using the xboxdrv driver?
Do you know which driver is currently being used to interface to that gamepad? I seem to remember that the xboxdrv site mentioned some form of experimental gamepad support, not sure if it was for your device, but maybe its a starting point... |
All times are GMT -5. The time now is 01:56 PM. |