mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-25 00:30:46 +01:00
[ion] Introduce Ion::Events::None
Which allows Ion::Events::getEvent to be non-blocking Change-Id: I2715b10ace2ecbac153b0f7d00ea5f2ca5de399c
This commit is contained in:
@@ -37,6 +37,9 @@ void Container::run() {
|
||||
|
||||
void Container::step() {
|
||||
Ion::Events::Event event = Ion::Events::getEvent(); // This is a blocking call
|
||||
if (event == Ion::Events::None) {
|
||||
return;
|
||||
}
|
||||
if (handleEvent(event)) {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user