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.
The adapter:
http://www.amazon.com/May-Flash-Cont.../dp/B002B9FIUU
Thanks!