diff options
author | Uros Majstorovic <majstor@majstor.org> | 2020-01-07 00:54:54 +0100 |
---|---|---|
committer | Uros Majstorovic <majstor@majstor.org> | 2020-01-07 00:54:54 +0100 |
commit | 2d9f22e056b61917979db67da49fc0655b0af3a4 (patch) | |
tree | f85f97d8912018caa5f2af6ce9e271ece534b189 /code/fe310/eos/eve_kbd.h | |
parent | ade4905ef785005347718ce612c245f7fa4dad70 (diff) |
touch event hanlder: added tracking/dragging; text box: added drag/scroll capability; added keyboard
Diffstat (limited to 'code/fe310/eos/eve_kbd.h')
-rw-r--r-- | code/fe310/eos/eve_kbd.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/code/fe310/eos/eve_kbd.h b/code/fe310/eos/eve_kbd.h new file mode 100644 index 0000000..60a2ff2 --- /dev/null +++ b/code/fe310/eos/eve_kbd.h @@ -0,0 +1,18 @@ +#include <stdint.h> + +typedef void (*eos_kbd_fptr_t) (int); + +typedef struct EOSKbd { + 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; + eos_kbd_fptr_t key_down_f; +} EOSKbd; + +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 |