📄 keyboard.h
字号:
/** Snixos Project version 1.0, 2003.6* (C) Copyright 2003,2004,2005 Jockeyson,KeqiangGao <Snallie@tom.com>* All Rights Reserved.* Distributed under the terms of the GNU General Public License.** This program is a free and open source software and you can redistribute * it and/or modify it under the terms of the GNU General Public License as* published by the Free Software Foundation. As no any liablity is assumed * for any incidental or consequential damages in connection with the * information or program fragments contained herein,so any exception arised* is at your own risk. It is ABSOLUTELY WITHOUT ANY WARRANTY.* Bug report please send to Snallie@tom.com .*//* keyboard.h: exported function prototype defined in keyboard.c Author : Snallie@tom.com Time : 2003.6*/#ifndef _KEYBOARD_H#define _KEYBOARD_H#define KBDATAPORT 0X60#define KBCTRLPORT 0X61#define KBSIZE 254enum scanCodeLiteral { ESC = 1, F1 = 59, F2 = 60, F3 = 61, F4 = 62, F5 = 63, F6 = 64, F7 = 65, F8 = 66, F9 = 67, F10 = 68, F11 = 87, F12 = 88, UP = 72, DOWN = 80, LEFT = 75, RIGHT = 77, INSERT = 82, DELETE =83, HOME = 71, END = 79, PAGEUP = 73, PAGEDOWN = 81};int keyEmpty();char getKey();char getScan();void readKeybd(char *ascii, char *scan );int getLeftCtrl();#endif // _KEYBOARD_H
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -