Page 1 of 1

usb keyboard

Posted: Tue Jul 25, 2006 1:14 pm
by ubergeek42
Are there any examples of how to use a usb keyboard for text input?

Also, I'm still using the pretty basic code from the pad example for controller input/initilization, and I've heard that the code from there isn't the best, is there a better example somewhere? Or can someone give me some pointers to make it better?

Posted: Wed Jul 26, 2006 5:11 pm
by Polo35
Hey.

Look at ULE source code. ;)

There is a text editor with full usb keyboard support.

Best regards

Polo

Posted: Thu Jul 27, 2006 1:57 am
by ubergeek42
Many thanks, I managed to figure out the usb keyboard stuff after I realized that the header for it is libkbd.h, not ps2kbd.h. Once knew what the functions were it was pretty simple from there on out, with a little trial and error.

I will probably take a look at uLaunchElf, because right now I think my program kinda dies if you unplug a controller, or don't have one plugged in to begin with.

Polo35: I saw that you managed to change uLaunchElf to use gsKit, which is what I am currently using, but I'm having some odd problems with the fonts(not displaying the proper letter, not always drawing the entire screen of text, wierd things); did you have any problems with it?