working sample for usb keyboad?
Posted: Tue Sep 06, 2005 4:26 am
Is there a working sample for using a usb keyboard on the ps2?
I came across: /archive/ps2hid/iop/ps2kbd/ps2kbd.com in cvs (author is TyRaNiD). Looks like exactly what I need.
I added -lkbd & -lmouse to my list of libs when compiling, and put #include libkbd.h, libmouse.h, stdio.h & debug.h in thew source as well. Changed the printf to scr_printf so that the output goes to the ps2 screen. It compiled fine, using PS2SDK
PS2KbdInit() returns non zero result, so the keyboard should be initialized, but the keyboard doesn't respond to capslock, nor numlock. Of course the program doesn't sense any keyboard input either.
It relies on usbd.irx, ps2mouse.irx and ps2kbd.irx, of which I have tried compiling them into the elf as well. These 3 .irx's were in the ps2sdk.
The keyboard hardware is fine, and works under blackrhino.
So is there another sample for usb keyboards or can anyone give me a hint as to what i've missed?
I came across: /archive/ps2hid/iop/ps2kbd/ps2kbd.com in cvs (author is TyRaNiD). Looks like exactly what I need.
I added -lkbd & -lmouse to my list of libs when compiling, and put #include libkbd.h, libmouse.h, stdio.h & debug.h in thew source as well. Changed the printf to scr_printf so that the output goes to the ps2 screen. It compiled fine, using PS2SDK
PS2KbdInit() returns non zero result, so the keyboard should be initialized, but the keyboard doesn't respond to capslock, nor numlock. Of course the program doesn't sense any keyboard input either.
It relies on usbd.irx, ps2mouse.irx and ps2kbd.irx, of which I have tried compiling them into the elf as well. These 3 .irx's were in the ps2sdk.
The keyboard hardware is fine, and works under blackrhino.
So is there another sample for usb keyboards or can anyone give me a hint as to what i've missed?