diff options
Diffstat (limited to 'code/fe310/eos/eve_kbd.h')
-rw-r--r-- | code/fe310/eos/eve_kbd.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/code/fe310/eos/eve_kbd.h b/code/fe310/eos/eve_kbd.h index 60a2ff2..c65f7d3 100644 --- a/code/fe310/eos/eve_kbd.h +++ b/code/fe310/eos/eve_kbd.h @@ -1,8 +1,8 @@ #include <stdint.h> -typedef void (*eos_kbd_fptr_t) (int); +typedef void (*eve_kbd_input_handler_t) (void *, int); -typedef struct EOSKbd { +typedef struct EVEKbd { uint32_t mem_addr; uint16_t mem_size; uint8_t key_count; @@ -10,9 +10,9 @@ typedef struct EOSKbd { uint8_t key_modifier; uint8_t key_modifier_sticky; uint8_t key_modifier_lock; - eos_kbd_fptr_t key_down_f; -} EOSKbd; + eve_kbd_input_handler_t putc; +} EVEKbd; -void eos_kbd_init(EOSKbd *kbd, eos_kbd_fptr_t key_down_f, uint32_t mem_addr, uint32_t *mem_next); -void eos_kbd_draw(EOSKbd *kbd, uint8_t tag0, int touch_idx); -void eos_kbd_update(EOSKbd *kbd);
\ No newline at end of file +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 |