diff options
Diffstat (limited to 'src/Game.h')
-rw-r--r-- | src/Game.h | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -32,7 +32,6 @@ class Triangle; class Game { public: enum Input { - NONE = 0, FORWARD = (1 << 0), BACKWARD = (1 << 1), LEFT = (1 << 2), @@ -44,7 +43,7 @@ class Game { bool loadLevel(const std::string &name); void setInput(unsigned input) { - this->input = static_cast<Input>(input); + this->input = input; } void run(int delta); @@ -59,7 +58,7 @@ class Game { vmml::vec3f playerPos; vmml::mat4f playerRot; - Input input; + unsigned input; int lightPos; }; |