Puck2099
Certified Guru
Hi,
After some time, I have just finished a library to use USB Joysticks on GP2X connected to the Breakout Board or a similar device.
What could it be useful for? For example, you could play at the same time with 3 friends to Sunset Riders in front of your TV.
This library only makes use of kernel's and standard functions, so you could use it with SDL, Rlyeh's minimal libs or another APIs.
I think it is quite simple to use it, but I have added a complete documentation in HTML so coders could make use of it in a easier way to implement USB control on their games/emulators.
The library is licensed as LGPL and I have added the source code, if you make use of it I would only ask you to make it know that you use it. If you could improve the library, please, make public that improvements
I have included also a simple program to test USB joysticks called joytest.
This program scans up to 4 USB Joysticks (they must be plugged before executing joytest), shows information about them and lets you test how they work in a visual way. You can switch from a joystick to another only pushing a button or moving the pad.
I have included also the source code to help you know how it works. By the way, you can exit the program pushing START on the GP2X.
I have tested it with 4 devices connected at the same time: two usb pads, a dancing mate and a Playstation to USB pads adapter. All of them have worked fine
I hope it could help coders to include USB joystick support, I will add it to my AlexKidd2X in the next days.
Sorry for my bad English :unsure:
You can download it from here: usbjoy
Regards
After some time, I have just finished a library to use USB Joysticks on GP2X connected to the Breakout Board or a similar device.
What could it be useful for? For example, you could play at the same time with 3 friends to Sunset Riders in front of your TV.
This library only makes use of kernel's and standard functions, so you could use it with SDL, Rlyeh's minimal libs or another APIs.
I think it is quite simple to use it, but I have added a complete documentation in HTML so coders could make use of it in a easier way to implement USB control on their games/emulators.
The library is licensed as LGPL and I have added the source code, if you make use of it I would only ask you to make it know that you use it. If you could improve the library, please, make public that improvements
I have included also a simple program to test USB joysticks called joytest.
This program scans up to 4 USB Joysticks (they must be plugged before executing joytest), shows information about them and lets you test how they work in a visual way. You can switch from a joystick to another only pushing a button or moving the pad.
I have included also the source code to help you know how it works. By the way, you can exit the program pushing START on the GP2X.
I have tested it with 4 devices connected at the same time: two usb pads, a dancing mate and a Playstation to USB pads adapter. All of them have worked fine
I hope it could help coders to include USB joystick support, I will add it to my AlexKidd2X in the next days.
Sorry for my bad English :unsure:
You can download it from here: usbjoy
Regards