]> git.jsancho.org Git - lugaru.git/blobdiff - Source/Utils/Input.hpp
Update copyright year to 2017
[lugaru.git] / Source / Utils / Input.hpp
index af83cb1b06b0158367418242e4793df3bfed88b4..131855775d17559aa7182a1a3dab16b5158fda24 100644 (file)
@@ -1,6 +1,6 @@
 /*
 Copyright (C) 2003, 2010 - Wolfire Games
-Copyright (C) 2010-2016 - Lugaru contributors (see AUTHORS file)
+Copyright (C) 2010-2017 - Lugaru contributors (see AUTHORS file)
 
 This file is part of Lugaru.
 
@@ -26,9 +26,11 @@ along with Lugaru.  If not, see <http://www.gnu.org/licenses/>.
 #include <SDL.h>
 
 /**> CONSTANT DECLARATIONS <**/
-#define MOUSEBUTTON1 (SDL_NUM_SCANCODES + SDL_BUTTON_LEFT)
-#define MOUSEBUTTON2 (SDL_NUM_SCANCODES + SDL_BUTTON_RIGHT)
-#define MOUSEBUTTON3 (SDL_NUM_SCANCODES + SDL_BUTTON_MIDDLE)
+#define MOUSEBUTTON_LEFT (SDL_NUM_SCANCODES + SDL_BUTTON_LEFT)
+#define MOUSEBUTTON_RIGHT (SDL_NUM_SCANCODES + SDL_BUTTON_RIGHT)
+#define MOUSEBUTTON_MIDDLE (SDL_NUM_SCANCODES + SDL_BUTTON_MIDDLE)
+#define MOUSEBUTTON_X1 (SDL_NUM_SCANCODES + SDL_BUTTON_X1)
+#define MOUSEBUTTON_X2 (SDL_NUM_SCANCODES + SDL_BUTTON_X2)
 
 /**> FUNCTION PROTOTYPES <**/
 class Input
@@ -38,7 +40,6 @@ public:
     static bool isKeyDown(int k);
     static bool isKeyPressed(int k);
     static const char* keyToChar(unsigned short which);
-    static unsigned short CharToKey(const char* which);
     static bool MouseClicked();
 };