diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-05-30 00:53:40 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-05-30 00:53:40 +0300 |
commit | f29616d8d1309ee135afe2b2e7baf1d91d677a95 (patch) | |
tree | 77624591a88075bc2b1128520d950c717d353288 /src/gui/sdlinput.h | |
parent | ec51be4fd71babf30a73332bc4b73edb994ee462 (diff) | |
download | manaplus-f29616d8d1309ee135afe2b2e7baf1d91d677a95.tar.gz manaplus-f29616d8d1309ee135afe2b2e7baf1d91d677a95.tar.bz2 manaplus-f29616d8d1309ee135afe2b2e7baf1d91d677a95.tar.xz manaplus-f29616d8d1309ee135afe2b2e7baf1d91d677a95.zip |
Convert MouseButton enum into strong typed enum.
Diffstat (limited to 'src/gui/sdlinput.h')
-rw-r--r-- | src/gui/sdlinput.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/gui/sdlinput.h b/src/gui/sdlinput.h index 83797c553..fb1c2e924 100644 --- a/src/gui/sdlinput.h +++ b/src/gui/sdlinput.h @@ -118,7 +118,7 @@ class SDLInput final MouseInput dequeueMouseInput() A_WARN_UNUSED; void simulateMouseClick(const int x, const int y, - const MouseButton::Type button); + const MouseButtonT button); protected: /** @@ -128,8 +128,7 @@ class SDLInput final * @param button an SDL mouse button. * @return a Guichan mouse button. */ - static MouseButton::Type convertMouseButton(const int button) - A_WARN_UNUSED; + static MouseButtonT convertMouseButton(const int button) A_WARN_UNUSED; /** * Converts an SDL event key to a key value. |