From 5721afb9670078f04d638a51b5994089d2bd35d8 Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Sat, 21 Sep 2013 23:22:56 +0000 Subject: [PATCH] nacl: compilation fix. --- test/meshviewer.cpp | 2 +- test/nacl_phystest.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/meshviewer.cpp b/test/meshviewer.cpp index a29ae2dc..985f1da0 100644 --- a/test/meshviewer.cpp +++ b/test/meshviewer.cpp @@ -213,7 +213,7 @@ public: is_fov = m_controller->GetKey(KEY_CAM_FOV).IsDown(); tmp = vec2((float)m_controller->GetKey(KEY_CAM_UP ).IsDown() - (float)m_controller->GetKey(KEY_CAM_DOWN).IsDown(), - ((float)m_controller->GetKey(KEY_CAM_RIGHT ).IsDown() - (float)m_controller->GetKey(KEY_CAM_LEFT).IsDown())); + (float)m_controller->GetKey(KEY_CAM_RIGHT ).IsDown() - (float)m_controller->GetKey(KEY_CAM_LEFT).IsDown()); #endif //!__native_client__ //Base data diff --git a/test/nacl_phystest.cpp b/test/nacl_phystest.cpp index e9be063a..64fa674c 100644 --- a/test/nacl_phystest.cpp +++ b/test/nacl_phystest.cpp @@ -26,7 +26,7 @@ int gNumObjects = 64; Nacl_PhysTest::Nacl_PhysTest(bool editor) { /* Register an input controller for the keyboard */ - m_controller = new Controller(KEY_MAX, 0); + m_controller = new Controller("Default", KEY_MAX, 0); m_controller->GetKey(KEY_MOVE_FORWARD).Bind("Keyboard", "Up"); m_controller->GetKey(KEY_MOVE_BACK).Bind("Keyboard", "Down"); m_controller->GetKey(KEY_MOVE_LEFT).Bind("Keyboard", "Left");