mirror of
https://git.planet-casio.com/Lephenixnoir/JustUI.git
synced 2024-12-28 04:23:40 +01:00
jscene: honor the getkey feature function in jscene_run()
This commit is contained in:
parent
2e15bb8c96
commit
67219834be
1 changed files with 6 additions and 0 deletions
|
@ -231,12 +231,18 @@ jevent jscene_run(jscene *s)
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
getkey_feature_t feat = getkey_feature_function();
|
||||||
|
if((k.type == KEYEV_DOWN || k.type == KEYEV_HOLD) && feat && feat(k))
|
||||||
|
continue;
|
||||||
|
|
||||||
if(k.type != KEYEV_NONE && !jscene_process_key_event(s, k)) {
|
if(k.type != KEYEV_NONE && !jscene_process_key_event(s, k)) {
|
||||||
e.type = JWIDGET_KEY;
|
e.type = JWIDGET_KEY;
|
||||||
e.key = k;
|
e.key = k;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO: Should only sleep when out of events!
|
||||||
sleep();
|
sleep();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue