diff --git a/base/BlackberryMain.cpp b/base/BlackberryMain.cpp index fdb3f1cd36..850ddab926 100644 --- a/base/BlackberryMain.cpp +++ b/base/BlackberryMain.cpp @@ -94,6 +94,8 @@ void LaunchEmail(const char *email_address) navigator_invoke((std::string("mailto:") + email_address).c_str(), &error); } +InputState input_state; + // Input const int buttonMappings[18] = { KEYCODE_X, //A @@ -387,7 +389,6 @@ int main(int argc, char *argv[]) { vibration_request_events(0); #endif BlackberryAudio* audio = new BlackberryAudio(); - InputState input_state; bool running = true; while (running) { input_state.mouse_valid = false; diff --git a/base/PCMain.cpp b/base/PCMain.cpp index 4b1f1a8d73..76afe561a8 100644 --- a/base/PCMain.cpp +++ b/base/PCMain.cpp @@ -222,6 +222,8 @@ void LaunchEmail(const char *email_address) +InputState input_state; + const int buttonMappings[14] = { #ifdef PANDORA SDLK_PAGEDOWN, //X => cross @@ -484,7 +486,6 @@ int main(int argc, char *argv[]) { } #endif - InputState input_state; int framecount = 0; bool nextFrameMD = 0; float t = 0, lastT = 0;