diff --git a/.gitignore b/.gitignore index e6ef6ea..f2f0393 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,6 @@ mini.exe mini +mini_debug.exe +mini_debug .vscode/* info.plist diff --git a/mini.cpp b/mini.cpp index e954d01..5f4bd46 100644 --- a/mini.cpp +++ b/mini.cpp @@ -216,6 +216,7 @@ int main(int argc,char*argv[]){ while(SDL_PollEvent(&mini_eve)) { if (mini_eve.type == SDL_QUIT) { should_exit=true; should_quit=true; break; } if (mini_eve.type == SDL_KEYDOWN) { +#ifdef DEBUG if (mini_eve.key.keysym.scancode == SDL_SCANCODE_ESCAPE) { chirp_stop(); if (lua_is_playing()) { @@ -224,21 +225,15 @@ int main(int argc,char*argv[]){ reinit(); } else { should_exit=true; - //initaudio(); - //lua_init(lua_files); - //lua_call_init(); } } else if (mini_eve.key.keysym.scancode == SDL_SCANCODE_F5) { chirp_stop(); - should_exit=true; - //lua_quit(); - //reinit(); - //initaudio(); - //lua_init(lua_files); - //lua_call_init(); } else { key_just_pressed = mini_eve.key.keysym.scancode; } +#else + key_just_pressed = mini_eve.key.keysym.scancode; +#endif } if (mini_eve.type == SDL_MOUSEWHEEL) { mouse_wheel = mini_eve.wheel.y;