summaryrefslogtreecommitdiff
path: root/src/keyboardconfig.h
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.h
parent8e3fad97a5df4bfc706b0246794b00428bd207e0 (diff)
downloadmana-client-fbb717acfc2bd1f2a3cedf8465c817e8a5abec57.tar.gz
mana-client-fbb717acfc2bd1f2a3cedf8465c817e8a5abec57.tar.bz2
mana-client-fbb717acfc2bd1f2a3cedf8465c817e8a5abec57.tar.xz
mana-client-fbb717acfc2bd1f2a3cedf8465c817e8a5abec57.zip
keyboard config - keyboard setup gui re-designed, fixed errors in keyboard config.
m_id:16
Diffstat (limited to 'src/keyboardconfig.h')
-rw-r--r--src/keyboardconfig.h19
1 files changed, 7 insertions, 12 deletions
diff --git a/src/keyboardconfig.h b/src/keyboardconfig.h
index e2eef385..64d80629 100644
--- a/src/keyboardconfig.h
+++ b/src/keyboardconfig.h
@@ -60,11 +60,6 @@ class KeyboardConfig
void init();
/**
- * Destroys the keyboard config explicitly.
- */
- void destroy();
-
- /**
* Retrieve the key values from config file.
*/
void retrieve();
@@ -110,7 +105,7 @@ class KeyboardConfig
/**
* Get the key caption, providing more meaning to the user.
*/
- std::string& getKeyCaption(int index)
+ std::string const &getKeyCaption(int index) const
{ return mKey[index].caption; }
/**
@@ -145,7 +140,7 @@ class KeyboardConfig
/**
* Checks if the key is active, by providing the key function index.
*/
- bool isKeyActive(const int index);
+ bool isKeyActive(int index);
/**
* Takes a snapshot of all the active keys.
@@ -178,14 +173,14 @@ class KeyboardConfig
};
private:
- int mNewKeyIndex; /** Index of new key to be assigned */
- bool mEnabled; /** Flag to determine respond to key input */
+ int mNewKeyIndex; /**< Index of new key to be assigned */
+ bool mEnabled; /**< Flag to respond to key input */
- Setup_Keyboard *mSetupKey; /** Reference to setup window */
+ Setup_Keyboard *mSetupKey; /**< Reference to setup window */
- KeyFunction mKey[KEY_TOTAL]; /** Pointer to all the key data */
+ KeyFunction mKey[KEY_TOTAL]; /**< Pointer to all the key data */
- Uint8 *mActiveKeys; /** Stores a list of all the keys */
+ Uint8 *mActiveKeys; /**< Stores a list of all the keys */
};
extern KeyboardConfig keyboard;