[nostalgia/core/gba] Fix event cycle and add to setter for event handler

This commit is contained in:
2020-07-17 01:36:51 -05:00
parent a58467f327
commit dc0667ade4
12 changed files with 111 additions and 36 deletions
+6
View File
@@ -16,10 +16,16 @@
namespace nostalgia::core {
using event_handler = int(*)(void);
[[nodiscard]] ox::Error init(Context *ctx);
[[nodiscard]] ox::Error run(Context *ctx);
// Sets event handler that sleeps for the time given in the return value. The
// sleep time is a minimum of ~16 milliseconds.
void setEventHandler(event_handler);
// Returns the number of milliseconds that have passed since the start of the
// program.
[[nodiscard]] uint64_t ticksMs();