ソースを参照

Move Input.h to main tree

Dan Elkouby 10 年 前
コミット
be62743b10
共有5 個のファイルを変更した4 個の追加46 個の削除を含む
  1. 0 42
      platform/include/Input.h
  2. 1 1
      platform/nspire/Input.cpp
  3. 1 1
      platform/sfml/Input.cpp
  4. 1 1
      src/engine/StateMachine.cpp
  5. 1 1
      src/render/Camera.cpp

+ 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