mirror of
https://git.planet-casio.com/Lephenixnoir/JustUI.git
synced 2025-04-04 17:47:13 +02:00
jinput: fix incorrect return value in new event() convention
This commit is contained in:
parent
626da6f378
commit
93eb0df38a
1 changed files with 4 additions and 1 deletions
|
@ -256,6 +256,7 @@ static bool jinput_poly_event(void *i0, jevent e)
|
||||||
|
|
||||||
if(e.type == JWIDGET_KEY) {
|
if(e.type == JWIDGET_KEY) {
|
||||||
key_event_t ev = e.key;
|
key_event_t ev = e.key;
|
||||||
|
bool handled = true;
|
||||||
|
|
||||||
/* Releasing modifiers */
|
/* Releasing modifiers */
|
||||||
if(ev.type == KEYEV_UP && ev.key == KEY_SHIFT) {
|
if(ev.type == KEYEV_UP && ev.key == KEY_SHIFT) {
|
||||||
|
@ -326,10 +327,12 @@ static bool jinput_poly_event(void *i0, jevent e)
|
||||||
/* Remove modifiers otherwise */
|
/* Remove modifiers otherwise */
|
||||||
else i->mode &= ~(JINPUT_SHIFT | JINPUT_ALPHA);
|
else i->mode &= ~(JINPUT_SHIFT | JINPUT_ALPHA);
|
||||||
}
|
}
|
||||||
else return false;
|
else handled = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
i->widget.update = 1;
|
i->widget.update = 1;
|
||||||
|
if(handled)
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
return jwidget_poly_event(i, e);
|
return jwidget_poly_event(i, e);
|
||||||
|
|
Loading…
Add table
Reference in a new issue