summaryrefslogtreecommitdiff
path: root/src/keyboardconfig.cpp
diff options
context:
space:
mode:
authorJoshua Langley <joshlangley[at]optusnet.com.au>2007-07-25 13:06:47 +0000
committerJoshua Langley <joshlangley[at]optusnet.com.au>2007-07-25 13:06:47 +0000
commitfbb717acfc2bd1f2a3cedf8465c817e8a5abec57 (patch)
treeb197517690f9afa24bbbb4bf0a5dff8bd7b5b67e /src/keyboardconfig.cpp
parent8e3fad97a5df4bfc706b0246794b00428bd207e0 (diff)
downloadmana-fbb717acfc2bd1f2a3cedf8465c817e8a5abec57.tar.gz
mana-fbb717acfc2bd1f2a3cedf8465c817e8a5abec57.tar.bz2
mana-fbb717acfc2bd1f2a3cedf8465c817e8a5abec57.tar.xz
mana-fbb717acfc2bd1f2a3cedf8465c817e8a5abec57.zip
keyboard config - keyboard setup gui re-designed, fixed errors in keyboard config.
m_id:16
Diffstat (limited to 'src/keyboardconfig.cpp')
-rw-r--r--src/keyboardconfig.cpp9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/keyboardconfig.cpp b/src/keyboardconfig.cpp
index 277fbcd3..73912000 100644
--- a/src/keyboardconfig.cpp
+++ b/src/keyboardconfig.cpp
@@ -56,13 +56,6 @@ void KeyboardConfig::init()
retrieve();
}
-void KeyboardConfig::destroy()
-{
- store();
-
- delete [] mActiveKeys;
-}
-
void KeyboardConfig::retrieve()
{
for (int i = 0; i < KEY_TOTAL; i++)
@@ -109,7 +102,7 @@ void KeyboardConfig::callbackNewKey()
mSetupKey->newKeyCallback(mNewKeyIndex);
}
-int KeyboardConfig::getKeyIndex(const int keyValue) const
+int KeyboardConfig::getKeyIndex(int keyValue) const
{
for (int i = 0; i < KEY_TOTAL; i++)
{