From fbb717acfc2bd1f2a3cedf8465c817e8a5abec57 Mon Sep 17 00:00:00 2001 From: Joshua Langley Date: Wed, 25 Jul 2007 13:06:47 +0000 Subject: keyboard config - keyboard setup gui re-designed, fixed errors in keyboard config. m_id:16 --- src/keyboardconfig.h | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) (limited to 'src/keyboardconfig.h') diff --git a/src/keyboardconfig.h b/src/keyboardconfig.h index e2eef385..64d80629 100644 --- a/src/keyboardconfig.h +++ b/src/keyboardconfig.h @@ -59,11 +59,6 @@ class KeyboardConfig */ void init(); - /** - * Destroys the keyboard config explicitly. - */ - void destroy(); - /** * Retrieve the key values from config file. */ @@ -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; -- cgit v1.2.3-70-g09d2