Explorar el Código

Move Input.h to main tree

Dan Elkouby hace 10 años
padre
commit
be62743b10

+ 0 - 42
platform/include/Input.h

@@ -1,42 +0,0 @@
-#ifndef INCLUDE_INPUT_H
-#define INCLUDE_INPUT_H
-
-namespace WalrusRPG
-{
-    namespace Input
-    {
-        enum Key
-        {
-            K_A,
-            K_B,
-            K_L,
-            K_R,
-            K_UP,
-            K_DOWN,
-            K_LEFT,
-            K_RIGHT,
-            K_START,
-            K_SELECT,
-            K_SIZE
-        };
-
-        enum KeyState
-        {
-            KS_RELEASED,
-            KS_JUST_RELEASED,
-            KS_JUST_PRESSED,
-            KS_PRESSED
-        };
-
-
-        void key_poll();
-
-        KeyState key_get_state(Key key);
-        bool key_pressed(Key key);
-        bool key_released(Key key);
-        bool key_down(Key key);
-        bool key_up(Key key);
-    }
-}
-
-#endif

+ 1 - 1
platform/nspire/Input.cpp

@@ -1,4 +1,4 @@
-#include "Input.h"
+#include "input/Input.h"
 #include <libndls.h>
 
 #define INPUT WalrusRPG::Input

+ 1 - 1
platform/sfml/Input.cpp

@@ -1,4 +1,4 @@
-#include "Input.h"
+#include "input/Input.h"
 #include "Graphics.h" // window
 #include "sfwindow.h"
 #include <SFML/Window/Keyboard.hpp>

+ 1 - 1
src/engine/StateMachine.cpp

@@ -4,7 +4,7 @@
 #include "Graphics.h"
 #include "render/Text.h"
 #include "version.h"
-#include "Input.h"
+#include "input/Input.h"
 
 using namespace WalrusRPG::Graphics;
 using namespace WalrusRPG::States;

+ 1 - 1
src/render/Camera.cpp

@@ -1,6 +1,6 @@
 #include "Camera.h"
 #include "utility/misc.h"
-#include "Input.h"
+#include "input/Input.h"
 
 #define CAMERA WalrusRPG::Camera