Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2008-08-03 17:29:53 +0000
committerStijn Buys <ingar@osirion.org>2008-08-03 17:29:53 +0000
commit217b4453fd284a29c422ebd1cef30a9c2c3de639 (patch)
treec7e820e44647a3e76219a49f415ccfd160518381
parent5f58a9ced4c3a9f496da96d1910b5b1043eef8df (diff)
fixes Alt+key bindings
-rw-r--r--src/client/keyboard.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/client/keyboard.cc b/src/client/keyboard.cc
index 1ebba12..5416580 100644
--- a/src/client/keyboard.cc
+++ b/src/client/keyboard.cc
@@ -55,7 +55,7 @@ Keyboard::Keyboard()
Key *key = 0;
add_key("backspace", SDLK_BACKSPACE);
- add_key("tab", SDLK_TAB);
+ add_key("tab", SDLK_TAB, 0, "impulse");
add_key("clear", SDLK_CLEAR);
add_key("enter", SDLK_RETURN);
add_key("pause", SDLK_PAUSE);
@@ -356,7 +356,7 @@ void Keyboard::bind(std::string const &name, const std::string str)
modifier = Key::Ctrl;
} else if ((keyname.size() > 4) && (keyname.substr(0, 4).compare("alt+") == 0)) {
keyname.erase(0, 4);
- modifier = Key::Shift;
+ modifier = Key::Alt;
} else if ((keyname.size() > 6) && (keyname.substr(keyname.size() - 6, 6).compare("+shift") == 0)) {
keyname.erase(keyname.size() - 6, 6);
@@ -366,7 +366,7 @@ void Keyboard::bind(std::string const &name, const std::string str)
modifier = Key::Ctrl;
} else if ((keyname.size() > 4) && (keyname.substr(keyname.size() - 4, 4).compare("+alt") == 0)) {
keyname.erase(0, keyname.size() -46);
- modifier = Key::Shift;
+ modifier = Key::Alt;
}
Key *key = find(keyname);
@@ -401,7 +401,7 @@ void Keyboard::unbind(std::string const &name)
modifier = Key::Ctrl;
} else if ((keyname.size() > 4) && (keyname.substr(0, 4).compare("alt+") == 0)) {
keyname.erase(0, 4);
- modifier = Key::Shift;
+ modifier = Key::Alt;
} else if ((keyname.size() > 6) && (keyname.substr(keyname.size() - 6, 6).compare("+shift") == 0)) {
keyname.erase(keyname.size() - 6, 6);
@@ -411,7 +411,7 @@ void Keyboard::unbind(std::string const &name)
modifier = Key::Ctrl;
} else if ((keyname.size() > 4) && (keyname.substr(keyname.size() - 4, 4).compare("+alt") == 0)) {
keyname.erase(0, keyname.size() -46);
- modifier = Key::Shift;
+ modifier = Key::Alt;
}
Key *key = find(name);