📄 ps2_keyboard.h
字号:
//====================================================================================//文 件 名:PS2_Keyboard.h//功能描述: PS2键盘驱动程序头文件//维护记录: 2007年3月17日//====================================================================================#ifndef _PS2_KEYBOARD_H_#define _PS2_KEYBOARD_H_#include "PS2_Drv.h"#define KEYB_MAX_PRESS 5 // 最大同时按键数目//signtypedef struct{ short KeyCount; // 当前同时按下了几个键 unsigned short KeyCode[KEYB_MAX_PRESS]; // 每个键的键值}KEYB_STATUS;#define KEYB_LED_SCROLL 0x01#define KEYB_LED_NUM 0x02#define KEYB_LED_CAPS 0x04short Keyboard_Init(void);short Keyboard_Reset(void);short Keyboard_Pause(void);short Keyboard_Resume(void);short Keyboard_SetupLED(unsigned char LEDCode);short Keyboard_Get(KEYB_STATUS *pKeyStatus);int Key_Get();extern KEYB_STATUS Key_Status;#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -