Mirror of CollapseOS
25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.

17 satır
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);