X-Git-Url: http://nitlanguage.org diff --git a/lib/mnit_linux/linux_app.nit b/lib/mnit_linux/linux_app.nit index 4b599ed..45d15c1 100644 --- a/lib/mnit_linux/linux_app.nit +++ b/lib/mnit_linux/linux_app.nit @@ -19,23 +19,37 @@ module linux_app import mnit import sdl import linux_opengles1 +import linux in "C" `{ #include `} redef class App - redef type IE: SDLInputEvent redef type D: Opengles1Display redef type I: Opengles1Image redef fun setup do + if "NIT_TESTING".environ == "true" then exit 0 display = new Opengles1Display super - window_created + on_create + on_restore_state + on_start + on_resume + end + + redef fun run + do + super + + on_pause + on_save_state + on_stop + on_destroy end redef fun generate_input