Usb Host - Other Devices?


jokeman

Member
Joined
Feb 4, 2006
Messages
101
Location
Austria
Website
Visit site
i now have finished my BoB... my USB flash card reader is working
has anyone tried to get a USB mouse, keyboard or gamepad running?

if yes, how have you done it?
 
You should be able to find generic USB-HID keyboard/mouse drivers out there, I don't know if gamepads use HID drivers too. Anyway, if you use these drivers they should work, but I don't think any apps out there right now support them.
 
i used the usb host driver from http://www.artaylor.co.uk/~richard/gp2x/ and connected a USB keyboard. hoped that the duke3D port has still implemented the keyboard, but it didn't work.
then i tipped on the keyboard when the menu was on and the letters showed up on the menu... so i assume, it is working when the app has implemented it...

next, i will try to write a demo program that is using keyboard and mouse
 
I would assume that no one broke keyboard support in SDL, so it would be as simple as making the event listener respond to keyboard events.
 
hmm... i tried SDLTest by Guyfawkes... Keyboard handling is implemented in his program...

but it isn't working... like in the menu, i get the letters displayed on the screen, but no SDL_KEYDOWN is thrown :(
maybe a wrong driver?

any ideas?
 
Back
Top