Mirror of CollapseOS
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

17 行
406B

  1. #include <stdint.h>
  2. #include <stdbool.h>
  3. #include "emul.h"
  4. #define KBD_BUFSZ 0x10
  5. typedef struct {
  6. uint8_t kc; // last keycode to be pressed. 0 means none.
  7. bool breaking; // whether we should send 0xf0 before kc
  8. Tristate *TH;
  9. } Kbd;
  10. void kbd_init(Kbd *kbd, Tristate *TH);
  11. void kbd_pressshift(Kbd *kbd, bool ispressed);
  12. void kbd_presskey(Kbd *kbd, uint8_t keycode);
  13. uint8_t kbd_rd(Kbd *kbd);