2 * \file tpl_drv_keyboard.h
\r
3 * \brief Keyboard Driver Interface Definitions
\r
5 #ifndef _TPL_KEYBOARD_H
\r
6 #define _TPL_KEYBOARD_H
\r
8 #include <tpl_drv_common.h>
\r
11 * \enum eTplKeyboard_IOCtl
\r
12 * \brief Common Keyboard IOCtl Calls
\r
13 * \extends eTplDrv_IOCtl
\r
15 enum eTplKeyboard_IOCtl {
\r
16 //! \brief Get/Set Repeat Rate - (int Rate)
\r
17 KB_IOCTL_REPEATRATE = 4,
\r
18 //! \brief Get/Set Repeat Delay - (int Delay)
\r
19 KB_IOCTL_REPEATDELAY,
\r
20 //! \brief Sets the callback
\r
21 KB_IOCTL_SETCALLBACK
\r
24 typedef void (*tKeybardCallback)(Uint32);
\r
29 KEY_NP_MASK = 0x80, //End of ASCII Range
\r
32 KEY_UP, KEY_DOWN, KEY_LEFT, KEY_RIGHT,
\r
33 KEY_F1, KEY_F2, KEY_F3, KEY_F4, KEY_F5, KEY_F6,
\r
34 KEY_F7, KEY_F8, KEY_F9, KEY_F10, KEY_F11, KEY_F12,
\r
35 KEY_NUMLOCK, KEY_SCROLLLOCK,
\r
36 KEY_HOME, KEY_END, KEY_INS, KEY_DEL,
\r
37 KEY_PAUSE, KEY_BREAK,
\r
38 KEY_PGUP, KEY_PGDOWN,
\r
39 KEY_KPENTER, KEY_KPSLASH, KEY_KPMINUS, KEY_KPPLUS, KEY_KPSTAR,
\r
40 KEY_KPHOME, KEY_KPUP, KEY_KPPGUP, KEY_KPLEFT, KEY_KP5, KEY_KPRIGHT,
\r
41 KEY_KPEND, KEY_KPDOWN, KEY_KPPGDN, KEY_KPINS, KEY_KPDEL,
\r
45 KEY_MODIFIERS = 0xC0,
\r
46 KEY_LCTRL, KEY_RCTRL,
\r
48 KEY_LSHIFT, KEY_RSHIFT,
\r