summaryrefslogtreecommitdiff
path: root/src/gui/sdlinput.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-05-30 00:53:40 +0300
committerAndrei Karas <akaras@inbox.ru>2015-05-30 00:53:40 +0300
commitf29616d8d1309ee135afe2b2e7baf1d91d677a95 (patch)
tree77624591a88075bc2b1128520d950c717d353288 /src/gui/sdlinput.h
parentec51be4fd71babf30a73332bc4b73edb994ee462 (diff)
downloadplus-f29616d8d1309ee135afe2b2e7baf1d91d677a95.tar.gz
plus-f29616d8d1309ee135afe2b2e7baf1d91d677a95.tar.bz2
plus-f29616d8d1309ee135afe2b2e7baf1d91d677a95.tar.xz
plus-f29616d8d1309ee135afe2b2e7baf1d91d677a95.zip
Convert MouseButton enum into strong typed enum.
Diffstat (limited to 'src/gui/sdlinput.h')
-rw-r--r--src/gui/sdlinput.h5
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.