mirror of
https://github.com/love2d/love.git
synced 2026-08-17 02:58:31 +02:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user