PS2SDK
PS2 Homebrew Libraries
|
#include <tamtypes.h>
Go to the source code of this file.
Data Structures | |
struct | _kbd_rawkey |
struct | _kbd_keymap |
Macros | |
#define | PS2KBD_FSNAME "usbkbd" |
#define | PS2KBD_KBDFILE "dev" |
#define | PS2KBD_DEVFILE (PS2KBD_FSNAME ":" PS2KBD_KBDFILE) |
#define | PS2KBD_LED_NUMLOCK 1 |
#define | PS2KBD_LED_CAPSLOCK 2 |
#define | PS2KBD_LED_SCRLOCK 4 |
#define | PS2KBD_LED_COMPOSE 8 |
#define | PS2KBD_LED_KANA 16 |
#define | PS2KBD_LED_MASK 0x1F; |
#define | PS2KBD_ESCAPE_KEY 0x1B |
#define | PS2KBD_LEFT_CTRL (1 << 0) |
#define | PS2KBD_LEFT_SHIFT (1 << 1) |
#define | PS2KBD_LEFT_ALT (1 << 2) |
#define | PS2KBD_LEFT_GUI (1 << 3) |
#define | PS2KBD_RIGHT_CTRL (1 << 4) |
#define | PS2KBD_RIGHT_SHIFT (1 << 5) |
#define | PS2KBD_RIGHT_ALT (1 << 6) |
#define | PS2KBD_RIGHT_GUI (1 << 7) |
#define | PS2KBD_CTRL (PS2KBD_LEFT_CTRL | PS2KBD_RIGHT_CTRL) |
#define | PS2KBD_SHIFT (PS2KBD_LEFT_SHIFT | PS2KBD_RIGHT_SHIFT) |
#define | PS2KBD_ALT (PS2KBD_LEFT_ALT | PS2KBD_RIGHT_ALT) |
#define | PS2KBD_GUI (PS2KBD_LEFT_GUI | PS2KBD_RIGHT_GUI) |
#define | PS2KBD_RAWKEY_UP 0xF0 |
#define | PS2KBD_RAWKEY_DOWN 0xF1 |
#define | PS2KBD_READMODE_NORMAL 1 |
#define | PS2KBD_READMODE_RAW 2 |
#define | PS2KBD_BLOCKING 1 |
#define | PS2KBD_NONBLOCKING 0 |
#define | PS2KBD_KEYMAP_SIZE 256 |
#define | PS2KBD_IOCTL_SETREADMODE 1 |
#define | PS2KBD_IOCTL_SETLEDS 2 |
#define | PS2KBD_IOCTL_SETREPEATRATE 3 |
#define | PS2KBD_IOCTL_SETKEYMAP 4 |
#define | PS2KBD_IOCTL_SETCTRLMAP 5 |
#define | PS2KBD_IOCTL_SETALTMAP 6 |
#define | PS2KBD_IOCTL_SETSPECIALMAP 7 |
#define | PS2KBD_IOCTL_SETBLOCKMODE 8 |
#define | PS2KBD_IOCTL_FLUSHBUFFER 9 |
#define | PS2KBD_IOCTL_RESETKEYMAP 10 |
Typedefs | |
typedef struct _kbd_rawkey | kbd_rawkey |
typedef struct _kbd_keymap | kbd_keymap |
USB Keyboard Driver for PS2
Definition in file ps2kbd.h.
struct _kbd_keymap |
#define PS2KBD_SHIFT (PS2KBD_LEFT_SHIFT | PS2KBD_RIGHT_SHIFT) |
#define PS2KBD_IOCTL_SETREADMODE 1 |
#define PS2KBD_IOCTL_SETLEDS 2 |
#define PS2KBD_IOCTL_SETREPEATRATE 3 |
#define PS2KBD_IOCTL_SETKEYMAP 4 |
#define PS2KBD_IOCTL_SETCTRLMAP 5 |
#define PS2KBD_IOCTL_SETSPECIALMAP 7 |
#define PS2KBD_IOCTL_SETBLOCKMODE 8 |
#define PS2KBD_IOCTL_FLUSHBUFFER 9 |