diff options
author | Joshua Langley <joshlangley[at]optusnet.com.au> | 2007-07-24 06:39:04 +0000 |
---|---|---|
committer | Joshua Langley <joshlangley[at]optusnet.com.au> | 2007-07-24 06:39:04 +0000 |
commit | dc5d9dee3f3f726d463f5f23f5902d1d0373df93 (patch) | |
tree | 3e2a4f4e8f744c846a18fd17710f494dfd1f0711 /src/gui/setup_keyboard.cpp | |
parent | 71532a23200b246f63ed1e0dc3d563bd1184b593 (diff) | |
download | mana-dc5d9dee3f3f726d463f5f23f5902d1d0373df93.tar.gz mana-dc5d9dee3f3f726d463f5f23f5902d1d0373df93.tar.bz2 mana-dc5d9dee3f3f726d463f5f23f5902d1d0373df93.tar.xz mana-dc5d9dee3f3f726d463f5f23f5902d1d0373df93.zip |
keyboard configuration - mainly documentation fixes.
http://mantis.themanaworld.org/view.php?id=16
Diffstat (limited to 'src/gui/setup_keyboard.cpp')
-rw-r--r-- | src/gui/setup_keyboard.cpp | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/src/gui/setup_keyboard.cpp b/src/gui/setup_keyboard.cpp index 6ca149a5..4cb39494 100644 --- a/src/gui/setup_keyboard.cpp +++ b/src/gui/setup_keyboard.cpp @@ -29,7 +29,6 @@ #include "../configuration.h"
#include "../keyboardconfig.h"
-#include "../log.h"
#include "../utils/tostring.h"
@@ -104,14 +103,13 @@ void Setup_Keyboard::action(const gcn::ActionEvent &event) {
keyboard.setEnabled(false);
keyboard.setNewKeyIndex(i);
- enableButtons(false);
+ enableSetButtons(false);
mKeyLabel[i].setCaption(keyboard.getKeyCaption(i) + ": ?");
}
}
}
-
-void Setup_Keyboard::enableButtons(bool bValue)
+void Setup_Keyboard::enableSetButtons(bool bValue)
{
for (int i=0; i < keyboard.KEY_TOTAL; i++)
{
@@ -121,17 +119,17 @@ void Setup_Keyboard::enableButtons(bool bValue) void Setup_Keyboard::refreshAssignedKey(const int index)
{
- char *temp = SDL_GetKeyName(
- (SDLKey) keyboard.getKeyValue(index));
- mKeyLabel[index].setCaption(
- keyboard.getKeyCaption(index) + ": " + toString(temp));
- mKeyLabel[index].adjustSize();
+ char *temp = SDL_GetKeyName(
+ (SDLKey) keyboard.getKeyValue(index));
+ mKeyLabel[index].setCaption(
+ keyboard.getKeyCaption(index) + ": " + toString(temp));
+ mKeyLabel[index].adjustSize();
}
void Setup_Keyboard::newKeyCallback(const int index)
{
refreshAssignedKey(index);
- enableButtons(true);
+ enableSetButtons(true);
}
void Setup_Keyboard::refreshKeys()
@@ -141,5 +139,3 @@ void Setup_Keyboard::refreshKeys() refreshAssignedKey(i);
}
}
-
-
|