diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-05-18 16:48:43 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-05-18 16:48:43 +0300 |
commit | 4c5c512dcc2a561172a09cc9962ab6f597c9058c (patch) | |
tree | ff506f4374da8362e02b3435cdfb4f3a666ac2d8 /src | |
parent | 0d5fa0bc658e46269128bf23a9e981dfd9169de6 (diff) | |
download | mv-4c5c512dcc2a561172a09cc9962ab6f597c9058c.tar.gz mv-4c5c512dcc2a561172a09cc9962ab6f597c9058c.tar.bz2 mv-4c5c512dcc2a561172a09cc9962ab6f597c9058c.tar.xz mv-4c5c512dcc2a561172a09cc9962ab6f597c9058c.zip |
Fix wheel usage in SDL2 build.
Diffstat (limited to 'src')
-rw-r--r-- | src/events/mousebutton.h | 1 | ||||
-rw-r--r-- | src/gui/sdlinput.cpp | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/events/mousebutton.h b/src/events/mousebutton.h index 29c4548e4..af79c4279 100644 --- a/src/events/mousebutton.h +++ b/src/events/mousebutton.h @@ -71,6 +71,7 @@ namespace MouseButton */ enum Type { + WHEEL = -1, EMPTY = 0, LEFT, RIGHT, diff --git a/src/gui/sdlinput.cpp b/src/gui/sdlinput.cpp index 846cb34f4..18e1802d9 100644 --- a/src/gui/sdlinput.cpp +++ b/src/gui/sdlinput.cpp @@ -164,7 +164,7 @@ void SDLInput::pushInput(const SDL_Event &event) #ifdef ANDROID mouseInput.setReal(0, 0); #endif - mouseInput.setButton(static_cast<uint32_t>(-1)); + mouseInput.setButton(MouseButton::WHEEL); if (y > 0) mouseInput.setType(MouseEventType::WHEEL_MOVED_UP); else |