mirror of
https://github.com/Alvin-Zilverstand/bob16.git
synced 2026-11-30 22:17:49 +01:00
e
This commit is contained in:
1 parent
78dd619293
commit
6dc841f956
109 files changed
+18192
-1907
No files matched your search
@@ -0,0 +1,24 @@
|
||||
#ifndef BOB64_KEYBOARD_H
|
||||
#define BOB64_KEYBOARD_H
|
||||
|
||||
#include "types.h"
|
||||
#include "event.h"
|
||||
|
||||
typedef struct {
|
||||
u8 LeftShift,RightShift,LeftControl,RightControl,LeftAlt,RightAlt;
|
||||
u8 CapsLock,Extended,PauseRemaining;
|
||||
} BOB64_KEYBOARD_STATE;
|
||||
|
||||
void bob64_keyboard_reset(void);
|
||||
int bob64_keyboard_decode(BOB64_KEYBOARD_STATE *state,u8 scancode);
|
||||
int bob64_keyboard_decode_event(BOB64_KEYBOARD_STATE *state,u8 scancode,
|
||||
BOB64_EVENT *event);
|
||||
int bob64_keyboard_poll(void);
|
||||
int bob64_keyboard_poll_event(BOB64_EVENT *event);
|
||||
/* IRQ producer and foreground consumer; the queue drops new events when full. */
|
||||
int bob64_keyboard_irq_capture(u8 scancode);
|
||||
int bob64_keyboard_irq_service(void);
|
||||
int bob64_keyboard_irq_pop_event(BOB64_EVENT *event);
|
||||
void bob64_keyboard_irq_set_active(int active);
|
||||
|
||||
#endif
|
||||
Reference in new issue
Block a user