summaryrefslogtreecommitdiff
path: root/src/gui/sdlinput.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-08-28 01:59:04 +0300
committerAndrei Karas <akaras@inbox.ru>2012-08-28 01:59:04 +0300
commitc79403e1341ac533df1771b866d1f5cee15e12b5 (patch)
tree5bed6dfb44f7fce0432bd7a7a28d2d23db07ce80 /src/gui/sdlinput.cpp
parent7c79aa2b8e484319e3e511fa21db6d2448347024 (diff)
downloadmanaverse-c79403e1341ac533df1771b866d1f5cee15e12b5.tar.gz
manaverse-c79403e1341ac533df1771b866d1f5cee15e12b5.tar.bz2
manaverse-c79403e1341ac533df1771b866d1f5cee15e12b5.tar.xz
manaverse-c79403e1341ac533df1771b866d1f5cee15e12b5.zip
Add const to more classes.
Diffstat (limited to 'src/gui/sdlinput.cpp')
-rw-r--r--src/gui/sdlinput.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/sdlinput.cpp b/src/gui/sdlinput.cpp
index 2b6b8363b..2c4e8cbea 100644
--- a/src/gui/sdlinput.cpp
+++ b/src/gui/sdlinput.cpp
@@ -220,7 +220,7 @@ void SDLInput::pushInput(const SDL_Event &event)
} // end switch
}
-int SDLInput::convertMouseButton(int button)
+int SDLInput::convertMouseButton(const int button)
{
switch (button)
{
@@ -236,9 +236,9 @@ int SDLInput::convertMouseButton(int button)
}
}
-int SDLInput::convertKeyCharacter(SDL_Event event)
+int SDLInput::convertKeyCharacter(const SDL_Event event)
{
- SDL_keysym keysym = event.key.keysym;
+ const SDL_keysym keysym = event.key.keysym;
int value = keysym.unicode;