summaryrefslogtreecommitdiff
path: root/code/fe310/eos/eve/eve_kbd.h
diff options
context:
space:
mode:
authorUros Majstorovic <majstor@majstor.org>2020-02-26 02:55:32 +0100
committerUros Majstorovic <majstor@majstor.org>2020-02-26 02:55:32 +0100
commitc65d6a08e7f6e48769697f9b7dd08c4933a36eff (patch)
tree17f8bd877da2352ab0037e891b9d6036d686fda0 /code/fe310/eos/eve/eve_kbd.h
parent206cdf9826233e0f7a923ade6518a26e66d90d86 (diff)
new eve dir
Diffstat (limited to 'code/fe310/eos/eve/eve_kbd.h')
-rw-r--r--code/fe310/eos/eve/eve_kbd.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/code/fe310/eos/eve/eve_kbd.h b/code/fe310/eos/eve/eve_kbd.h
new file mode 100644
index 0000000..c65f7d3
--- /dev/null
+++ b/code/fe310/eos/eve/eve_kbd.h
@@ -0,0 +1,18 @@
+#include <stdint.h>
+
+typedef void (*eve_kbd_input_handler_t) (void *, int);
+
+typedef struct EVEKbd {
+ uint32_t mem_addr;
+ uint16_t mem_size;
+ uint8_t key_count;
+ uint8_t key_down;
+ uint8_t key_modifier;
+ uint8_t key_modifier_sticky;
+ uint8_t key_modifier_lock;
+ eve_kbd_input_handler_t putc;
+} EVEKbd;
+
+void eve_kbd_init(EVEKbd *kbd, eve_kbd_input_handler_t putc_f, uint32_t mem_addr, uint32_t *mem_next);
+int eve_kbd_touch(EVEKbd *kbd, uint8_t tag0, int touch_idx, void *w);
+uint8_t eve_kbd_draw(EVEKbd *kbd, char active); \ No newline at end of file