keyboard.h

来自「A few drivers for the Motorola C380 s ce」· C头文件 代码 · 共 21 行

H
21
字号
#ifndef KEYBOARD_DRV_H
#define KEYBOARD_DRV_H#include "../libs/motolibs.h"/* Reads a value from keypad ports, inverts it, clears unused bits and sets bit 10 according to power key state (if PCAP is available) */
hword keyb_peek_direct(void);/* Reads the same as keyb_peek_direct() and debounces that value */hword keyb_peek(void);/* Checks if two keys specified by codes are pressed simultaeously */bool keyb_check_two_keys(byte key1, byte key2);/* Gets what key is pressed now (debounced). Returns key code (see inside) if exactly one key is pressed, 0xFF if no key is present, or 0xFE if more than one key is pressed */byte keyb_peek_key(void);/* Waits for no key to be pressed, then for exactly one key to be pressed, and return that key's code */byte keyb_get_key(void);
#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?