From abc38a90f6ec067090dbbc68ecd7f489732d54c0 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Fri, 29 Mar 2013 22:20:21 -0700 Subject: [PATCH] Buildfix for Mac/Linux/etc. Although, Qt seems more involved... --- base/BlackberryMain.cpp | 3 ++- base/PCMain.cpp | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) 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;