I have been messing around with the USB Keyboard and I have been having some problems with getting it to work. If someone could shed some light on this for me, I'll document it in the Wiki, because I have seen a lot of other people with the same problems.
After looking at the code for quake and uLaunchELF, I have tried to diagnose what is the absolute minimum neccessary to get the USB keyboard up and working, but it just won't initialize for some reason.
At first I tried this:
Code: Select all
char *myStr;
PS2KbdInit();
PS2KbdSetReadmode( PS2KBD_READMODE_NORMAL );
while( 1 ) {
.....
}
Code: Select all
	SifInitRpc(0);
	SifExecModuleBuffer(usbd, size_usbd, 0, NULL, &ret);
	SifExecModuleBuffer(ps2kbd, size_ps2kbd, 0, NULL, &ret);
	// Initialize the keyboard library.
	scr_printf("Initializing Keyboard...\n");
	if( PS2KbdInit() == 0 ) {
		scr_printf("Could not initialize keyboard.\n");
	}
	PS2KbdSetReadmode( PS2KBD_READMODE_RAW );
Thanks in advance =)

