- Debug i Release
This commit is contained in:
13
mini.cpp
13
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;
|
||||
|
||||
Reference in New Issue
Block a user