summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-12-27 19:39:42 +0300
committerAndrei Karas <akaras@inbox.ru>2017-12-27 19:39:42 +0300
commit13cc48ee351eb801aa82878ab2bebda048002e1b (patch)
treed42131fabf0f2e08e4098194ba84c62cddf60741
parentb5760b82e84707f5c8f3ccadbf6c2f80c46fc5c1 (diff)
downloadmv-13cc48ee351eb801aa82878ab2bebda048002e1b.tar.gz
mv-13cc48ee351eb801aa82878ab2bebda048002e1b.tar.bz2
mv-13cc48ee351eb801aa82878ab2bebda048002e1b.tar.xz
mv-13cc48ee351eb801aa82878ab2bebda048002e1b.zip
Remove default parameter from keyboardconfig.
-rw-r--r--src/game.cpp2
-rw-r--r--src/input/keyboardconfig.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/game.cpp b/src/game.cpp
index 467c960e3..800df6f65 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -1189,7 +1189,7 @@ void Game::updateHistory(const SDL_Event &event)
{
bool old = false;
- const InputActionT key = KeyboardConfig::getKeyIndex(event);
+ const InputActionT key = KeyboardConfig::getKeyIndex(event, 1);
const time_t time = cur_time;
int idx = -1;
for (int f = 0; f < MAX_LASTKEYS; f ++)
diff --git a/src/input/keyboardconfig.h b/src/input/keyboardconfig.h
index ef3f056b7..16221d8cc 100644
--- a/src/input/keyboardconfig.h
+++ b/src/input/keyboardconfig.h
@@ -62,7 +62,7 @@ class KeyboardConfig final
* Get the key function index by providing the keys value.
*/
static InputActionT getKeyIndex(const SDL_Event &event,
- const int grp = 1) A_WARN_UNUSED;
+ const int grp) A_WARN_UNUSED;
/**
* Set the enable flag, which will stop the user from doing actions.