keydef.h
上传用户:fy98168
上传日期:2015-06-26
资源大小:13771k
文件大小:2k
- #ifndef _KEYDEF_H_
- #define _KEYDEF_H_
- typedef enum _KB_KeyMsgType
- {
- KEY_PRESS, /* Press */
- KEY_RELEASE /* Release */
- }KB_KeyMsgType;
- typedef void (* KB_KeyCallBack)(KB_KeyMsgType PressOrRelease,UINT32 KeyCode);
- #define KB_BUTTON_NUMERIC (0x5000) // 数字键标识
- #define KB_BUTTON_WAIT (0x01) //"待机"键
- #define KB_BUTTON_LR (0x18) //"待机"键
- #define KB_BUTTON_MUTE (0x12) //"静音"键
- #define KB_BUTTON_1 (0x00) //"1"键
- #define KB_BUTTON_2 (0x07) //"2"键
- #define KB_BUTTON_3 (0x06) //"3"键
- #define KB_BUTTON_4 (0x04) //"4"键
- #define KB_BUTTON_5 (0x0b) //"5"键
- #define KB_BUTTON_6 (0x0a) //"6"键
- #define KB_BUTTON_7 (0x08) //"7"键
- #define KB_BUTTON_8 (0x0f) //"8"键
- #define KB_BUTTON_9 (0x0e) //"9"键
- #define KB_BUTTON_0 (0x13) //"0"键
- #define KB_BUTTON_CONVER (0X43) //"-/--"键
- #define KB_BUTTON_CLEAR (0x09) //"清除"键
- #define KB_BUTTON_RECALL (0x5b) //返回
- #define KB_BUTTON_LIST (0x5a) //列表
- #define KB_BUTTON_MENU (0x4E) //菜单
- #define KB_BUTTON_QUIT (0x16) //退出
- #define KB_BUTTON_CURSOR_UP (0x17) //上
- #define KB_BUTTON_CURSOR_DOWN (0x1A) //下
- #define KB_BUTTON_CURSOR_LEFT (0x42) //左
- #define KB_BUTTON_CURSOR_RIGHT (0x41) //右
- #define KB_BUTTON_COMFIRM (0x15) //"确定"键
- #define KB_BUTTON_PAGEUP (0x40) //上翻页
- #define KB_BUTTON_PAGEDOWN (0x1e) //下翻页
- #define KB_UI_FP_UP (0x002) //(0x01)
- #define KB_UI_FP_DOWN (0x001) //(0x04)
- #define KB_UI_FP_LEFT (0x100) //(0x10)
- #define KB_UI_FP_RIGHT (0x008) //(0x40)
- #define KB_UI_FP_COMFIRM (0x010) //(0x08)
- #define KB_UI_FP_MENU (0x800) //(0x02)
- #define KB_UI_FP_QUIT (0x200) //(0x20)
- #endif