Browse Source

nacl: compilation fix.

undefined
Sam Hocevar 11 years ago
parent
commit
5721afb967
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      test/meshviewer.cpp
  2. +1
    -1
      test/nacl_phystest.cpp

+ 1
- 1
test/meshviewer.cpp View File

@@ -213,7 +213,7 @@ public:
is_fov = m_controller->GetKey(KEY_CAM_FOV).IsDown(); 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(), 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__ #endif //!__native_client__


//Base data //Base data


+ 1
- 1
test/nacl_phystest.cpp View File

@@ -26,7 +26,7 @@ int gNumObjects = 64;
Nacl_PhysTest::Nacl_PhysTest(bool editor) Nacl_PhysTest::Nacl_PhysTest(bool editor)
{ {
/* Register an input controller for the keyboard */ /* 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_FORWARD).Bind("Keyboard", "Up");
m_controller->GetKey(KEY_MOVE_BACK).Bind("Keyboard", "Down"); m_controller->GetKey(KEY_MOVE_BACK).Bind("Keyboard", "Down");
m_controller->GetKey(KEY_MOVE_LEFT).Bind("Keyboard", "Left"); m_controller->GetKey(KEY_MOVE_LEFT).Bind("Keyboard", "Left");


Loading…
Cancel
Save