summaryrefslogtreecommitdiff
path: root/src/input
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-07-17 22:17:32 +0300
committerAndrei Karas <akaras@inbox.ru>2014-07-17 22:17:32 +0300
commitb55357c4bffafa629453abdfd6bb411d89ec5f25 (patch)
tree6fe805fb0f009e3a1756bbc3fc9a01cdaf50210f /src/input
parenta01c8632961792ba92a5c0bda8308d1260444b41 (diff)
downloadmanaplus-b55357c4bffafa629453abdfd6bb411d89ec5f25.tar.gz
manaplus-b55357c4bffafa629453abdfd6bb411d89ec5f25.tar.bz2
manaplus-b55357c4bffafa629453abdfd6bb411d89ec5f25.tar.xz
manaplus-b55357c4bffafa629453abdfd6bb411d89ec5f25.zip
Rename KeySortFunctor into InputActionSortFunctor.
Diffstat (limited to 'src/input')
-rw-r--r--src/input/inputactionsortfunctor.h (renamed from src/input/keysortfunctor.h)8
-rw-r--r--src/input/inputmanager.cpp4
2 files changed, 6 insertions, 6 deletions
diff --git a/src/input/keysortfunctor.h b/src/input/inputactionsortfunctor.h
index fedb4c395..1e79cc27e 100644
--- a/src/input/keysortfunctor.h
+++ b/src/input/inputactionsortfunctor.h
@@ -18,14 +18,14 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef INPUT_KEYSORTFUNCTOR_H
-#define INPUT_KEYSORTFUNCTOR_H
+#ifndef INPUT_INPUTACTIONSORTFUNCTOR_H
+#define INPUT_INPUTACTIONSORTFUNCTOR_H
#include "input/inputactiondata.h"
#include "localconsts.h"
-class KeySortFunctor final
+class InputActionSortFunctor final
{
public:
bool operator() (const int key1, const int key2) const
@@ -36,4 +36,4 @@ class KeySortFunctor final
const InputActionData *keys;
};
-#endif // INPUT_KEYSORTFUNCTOR_H
+#endif // INPUT_INPUTACTIONSORTFUNCTOR_H
diff --git a/src/input/inputmanager.cpp b/src/input/inputmanager.cpp
index 429297cfd..68950f4cf 100644
--- a/src/input/inputmanager.cpp
+++ b/src/input/inputmanager.cpp
@@ -25,9 +25,9 @@
#include "touchmanager.h"
#include "input/inputactionmap.h"
+#include "input/inputactionsortfunctor.h"
#include "input/joystick.h"
#include "input/keyboardconfig.h"
-#include "input/keysortfunctor.h"
#include "being/localplayer.h"
#ifdef USE_SDL2
#include "input/multitouchmanager.h"
@@ -64,7 +64,7 @@ extern QuitDialog *quitDialog;
namespace
{
- KeySortFunctor inputActionDataSorter;
+ InputActionSortFunctor inputActionDataSorter;
} // namespace
InputManager::InputManager() :