PS2SDK
PS2 Homebrew Libraries
|
#include <ps2kbd.h>
Go to the source code of this file.
Typedefs | |
typedef kbd_rawkey | PS2KbdRawKey |
typedef kbd_keymap | PS2KbdKeyMap |
Functions | |
int | PS2KbdInit (void) |
int | PS2KbdRead (char *key) |
int | PS2KbdReadRaw (PS2KbdRawKey *key) |
int | PS2KbdSetReadmode (u32 readMode) |
int | PS2KbdSetBlockingMode (u32 readMode) |
int | PS2KbdSetRepeatRate (u32 repeat) |
int | PS2KbdSetLeds (u8 leds) |
int | PS2KbdSetKeymap (PS2KbdKeyMap *keymaps) |
int | PS2KbdSetCtrlmap (u8 *ctrlmap) |
int | PS2KbdSetAltmap (u8 *altmap) |
int | PS2KbdSetSpecialmap (u8 *special) |
int | PS2KbdFlushBuffer (void) |
int | PS2KbdResetKeymap (void) |
int | PS2KbdClose (void) |
USB Keyboard Driver for PS2
Definition in file libkbd.h.
typedef kbd_rawkey PS2KbdRawKey |
typedef kbd_keymap PS2KbdKeyMap |
int PS2KbdRead | ( | char * | key | ) |
int PS2KbdReadRaw | ( | PS2KbdRawKey * | key | ) |
int PS2KbdSetReadmode | ( | u32 | readMode | ) |
Sets the read mode to normal or raw
Definition at line 70 of file libkbd.c.
References PS2KBD_IOCTL_SETREADMODE.
int PS2KbdSetBlockingMode | ( | u32 | readMode | ) |
Sets the blocking mode on or off
Definition at line 80 of file libkbd.c.
References PS2KBD_IOCTL_SETBLOCKMODE.
int PS2KbdSetRepeatRate | ( | u32 | repeat | ) |
Sets the repeat rate in millseconds
Definition at line 90 of file libkbd.c.
References PS2KBD_IOCTL_SETREPEATRATE.
int PS2KbdSetLeds | ( | u8 | leds | ) |
Sets all connected keyboards leds
Definition at line 99 of file libkbd.c.
References PS2KBD_IOCTL_SETLEDS.
int PS2KbdSetKeymap | ( | PS2KbdKeyMap * | keymaps | ) |
int PS2KbdSetCtrlmap | ( | u8 * | ctrlmap | ) |
Sets the control key mappings
Definition at line 117 of file libkbd.c.
References PS2KBD_IOCTL_SETCTRLMAP.
int PS2KbdSetAltmap | ( | u8 * | altmap | ) |
Sets the alt key mappings
Definition at line 126 of file libkbd.c.
References PS2KBD_IOCTL_SETALTMAP.
int PS2KbdSetSpecialmap | ( | u8 * | special | ) |
Sets the special key mappings
Definition at line 135 of file libkbd.c.
References PS2KBD_IOCTL_SETSPECIALMAP.
int PS2KbdFlushBuffer | ( | void | ) |
Flushes the keyboard buffer
Definition at line 144 of file libkbd.c.
References PS2KBD_IOCTL_FLUSHBUFFER.
int PS2KbdResetKeymap | ( | void | ) |
Resets the keymap to the default US mapping
Definition at line 155 of file libkbd.c.
References PS2KBD_IOCTL_RESETKEYMAP.