00001
00011 #ifndef _TPL_KEYBOARD_H
00012 #define _TPL_KEYBOARD_H
00013
00014 #include <tpl_drv_common.h>
00015
00021 enum eTplKeyboard_IOCtl {
00032 KB_IOCTL_REPEATRATE = 4,
00033
00045 KB_IOCTL_REPEATDELAY,
00046
00047
00057 KB_IOCTL_SETCALLBACK
00058 };
00059
00060 #define DRV_KEYBAORD_IOCTLNAMES "getset_repeat_rate", "getset_repeat_delay", "set_callback"
00061
00067 typedef void (*tKeybardCallback)(Uint32 Key);
00068
00077 enum eTplKeyboard_KeyCodes {
00078 KEY_ESC = 0x1B,
00079
00080 KEY_NP_MASK = 0x40000000,
00081
00087 KEY_CAPSLOCK,
00088 KEY_UP, KEY_DOWN, KEY_LEFT, KEY_RIGHT,
00089 KEY_F1, KEY_F2, KEY_F3, KEY_F4, KEY_F5, KEY_F6,
00090 KEY_F7, KEY_F8, KEY_F9, KEY_F10, KEY_F11, KEY_F12,
00091 KEY_NUMLOCK, KEY_SCROLLLOCK,
00092 KEY_HOME, KEY_END, KEY_INS, KEY_DEL,
00093 KEY_PAUSE, KEY_BREAK,
00094 KEY_PGUP, KEY_PGDOWN,
00095 KEY_KPENTER, KEY_KPSLASH, KEY_KPMINUS, KEY_KPPLUS, KEY_KPSTAR,
00096 KEY_KPHOME, KEY_KPUP, KEY_KPPGUP, KEY_KPLEFT, KEY_KP5, KEY_KPRIGHT,
00097 KEY_KPEND, KEY_KPDOWN, KEY_KPPGDN, KEY_KPINS, KEY_KPDEL,
00098 KEY_WIN, KEY_MENU,
00103
00109 KEY_MODIFIERS = 0x60000000,
00110 KEY_LCTRL, KEY_RCTRL,
00111 KEY_LALT, KEY_RALT,
00112 KEY_LSHIFT, KEY_RSHIFT,
00116 };
00117
00118
00119 #endif