X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=Source%2FUtils%2FInput.hpp;h=131855775d17559aa7182a1a3dab16b5158fda24;hb=0aab437dc560d2afa982e61cc2547756ad7b0761;hp=af83cb1b06b0158367418242e4793df3bfed88b4;hpb=ed3662c0852c4312a612b4fc35bd03aba8d13db7;p=lugaru.git diff --git a/Source/Utils/Input.hpp b/Source/Utils/Input.hpp index af83cb1..1318557 100644 --- a/Source/Utils/Input.hpp +++ b/Source/Utils/Input.hpp @@ -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 . #include /**> 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(); };