mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
30 lines
633 B
C++
30 lines
633 B
C++
#include <ion.h>
|
|
#include "display.h"
|
|
#include "events_keyboard.h"
|
|
#include "../../../apps/global_preferences.h"
|
|
#include <emscripten.h>
|
|
|
|
extern "C" {
|
|
const char * IonSoftwareVersion();
|
|
const char * IonPatchLevel();
|
|
}
|
|
|
|
const char * IonSoftwareVersion() { return Ion::softwareVersion(); }
|
|
const char * IonPatchLevel() { return Ion::patchLevel(); }
|
|
|
|
int main(int argc, char * argv[]) {
|
|
Ion::Display::Emscripten::init();
|
|
Ion::Events::Emscripten::init();
|
|
|
|
ion_main(argc, argv);
|
|
return 0;
|
|
}
|
|
|
|
void Ion::Timing::msleep(uint32_t ms) {
|
|
emscripten_sleep(ms);
|
|
}
|
|
|
|
void Ion::Timing::usleep(uint32_t us) {
|
|
emscripten_sleep(us/1000);
|
|
}
|