Browse Source

BUILD FIX

undefined
Benjamin ‘Touky’ Huet Sam Hocevar <sam@hocevar.net> 11 years ago
parent
commit
efe8a57810
2 changed files with 6 additions and 5 deletions
  1. +3
    -4
      test/Makefile.am
  2. +3
    -1
      test/meshviewer.cpp

+ 3
- 4
test/Makefile.am View File

@@ -59,10 +59,9 @@ nacl_phystest_LDFLAGS = $(AM_LDFLAGS)

meshviewer_SOURCES = meshviewer.cpp \
shinymvtexture.lolfx shinyfur.lolfx \
scenesetup-compiler.cpp \
scenesetup-compiler.h \
generated/scenesetup-scanner.cpp \
generated/scenesetup-scanner.h \
scenesetup.cpp scenesetup.h \
scenesetup-compiler.cpp scenesetup-compiler.h \
generated/scenesetup-scanner.cpp generated/scenesetup-scanner.h \
generated/scenesetup-parser.cpp
meshviewer_CPPFLAGS = $(AM_CPPFLAGS)
meshviewer_DEPENDENCIES = @LOL_DEPS@


+ 3
- 1
test/meshviewer.cpp View File

@@ -138,6 +138,7 @@ public:
m_camera = nullptr;
}

#if NO_NACL_EM
bool KeyReleased(MVKeyboardList index) { return (HAS_KBOARD && m_controller->GetKey(index).IsReleased()); }
bool KeyPressed(MVKeyboardList index) { return (HAS_KBOARD && m_controller->GetKey(index).IsPressed()); }
bool KeyDown(MVKeyboardList index) { return (HAS_KBOARD && m_controller->GetKey(index).IsDown()); }
@@ -145,6 +146,7 @@ public:
bool KeyPressed(MVMouseKeyList index) { return (HAS_MOUSE && m_controller->GetKey(index).IsPressed()); }
bool KeyDown(MVMouseKeyList index) { return (HAS_MOUSE && m_controller->GetKey(index).IsDown()); }
float AxisValue(MVMouseAxisList index) { return (HAS_MOUSE)?(m_controller->GetAxis(index).GetValue()):(0.f); }
#endif //NO_NACL_EM

void Init()
{
@@ -582,7 +584,7 @@ public:

private:
SceneSetup* m_ssetup;
byte m_input_usage;
short m_input_usage;
Controller* m_controller;
mat4 m_mat;
bool m_init;


Loading…
Cancel
Save