diff options
author | Uros Majstorovic <majstor@majstor.org> | 2020-01-27 07:29:11 +0100 |
---|---|---|
committer | Uros Majstorovic <majstor@majstor.org> | 2020-01-27 07:29:11 +0100 |
commit | 445d72abf487dc325ccbde1e3a12d1c4cf695a6a (patch) | |
tree | aee5cd0e2637625b25ad679f05edaf388368da55 /code/fe310/eos/eve_kbd.c | |
parent | 2d9f22e056b61917979db67da49fc0655b0af3a4 (diff) |
added screen tracking feature
Diffstat (limited to 'code/fe310/eos/eve_kbd.c')
-rw-r--r-- | code/fe310/eos/eve_kbd.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/code/fe310/eos/eve_kbd.c b/code/fe310/eos/eve_kbd.c index 00d5328..995d0ca 100644 --- a/code/fe310/eos/eve_kbd.c +++ b/code/fe310/eos/eve_kbd.c @@ -37,8 +37,8 @@ void eos_kbd_draw(EOSKbd *kbd, uint8_t tag0, int touch_idx) { EOSTouch *t = eos_touch_evt(tag0, touch_idx, 1, 127, &evt); if (t && evt) { - if (evt & EOS_TOUCH_ETYPE_DOWN) { - uint8_t _tag = t->tag; + if (evt & EOS_TOUCH_ETYPE_TAG_DOWN) { + uint8_t _tag = t->tag_down; if (_tag >= KEY_SHIFT && _tag <= KEY_FN) { if (touch_idx == 0) { @@ -67,8 +67,8 @@ void eos_kbd_draw(EOSKbd *kbd, uint8_t tag0, int touch_idx) { } } } - if (evt & EOS_TOUCH_ETYPE_UP) { - uint8_t _tag = t->tag_prev; + if (evt & EOS_TOUCH_ETYPE_TAG_UP) { + uint8_t _tag = t->tag_up; if (_tag >= KEY_SHIFT && _tag <= KEY_FN) { if (touch_idx == 0) { |