SDL click count functionality was added in 2.0.2, not 2.0.4. So we can get rid of some useless code since we require 2.0.2+ in love 0.11...

--HG--
branch : minor
This commit is contained in:
Alex Szpakowski
2016-09-27 22:53:48 -03:00
parent b38e567e74
commit aba4386807
2 changed files with 31 additions and 80 deletions
+3 -14
View File
@@ -68,20 +68,9 @@ public:
private:
struct ClickState
{
int count;
int lastX;
int lastY;
double time;
};
Message *convert(const SDL_Event &e);
Message *convertMouseButtonEvent(const SDL_Event &e);
Message *convertJoystickEvent(const SDL_Event &e);
Message *convertWindowEvent(const SDL_Event &e);
std::map<int, ClickState> clickCounts;
Message *convert(const SDL_Event &e) const;
Message *convertJoystickEvent(const SDL_Event &e) const;
Message *convertWindowEvent(const SDL_Event &e) const;
static std::map<SDL_Keycode, love::keyboard::Keyboard::Key> createKeyMap();
static std::map<SDL_Keycode, love::keyboard::Keyboard::Key> keys;