diff options
author | Stijn Buys <ingar@osirion.org> | 2008-11-01 13:33:18 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2008-11-01 13:33:18 +0000 |
commit | 83d6c17799c4d448a67ab5cdad02954282fa5c94 (patch) | |
tree | 2d76abb9bb501491f78e07822ed52e8302fdd247 /src/client/input.cc | |
parent | a6bceed80f1b4315f23656efeceb6fe02cc7641c (diff) |
server-side model loading, initial @dock function
Diffstat (limited to 'src/client/input.cc')
-rw-r--r-- | src/client/input.cc | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/client/input.cc b/src/client/input.cc index 7188de0..d4ccb17 100644 --- a/src/client/input.cc +++ b/src/client/input.cc @@ -482,6 +482,8 @@ Key::Modifier convert_SDL_modifier(int const sdlmodifier) void key_pressed(Key *key) { + // FIXME implement a real 'console key' + if (key->bind(Key::None).compare("ui_console") == 0) { // FIXME bah local_direction = 0.0f; @@ -510,10 +512,14 @@ void key_pressed(Key *key) } else if (core::application()->connected() && core::localcontrol()) { char c = key->bind(convert_SDL_modifier(keyboard_modifiers)).c_str()[0]; - if (c == '+') { + if (c == '@') { + // target bind + if (targets::current_id()) + core::cmd() << key->bind(convert_SDL_modifier(keyboard_modifiers)) << " " << targets::current_id() <<"\n"; + } else if (c == '+') { // action bind action_press(key, key->bind(convert_SDL_modifier(keyboard_modifiers))); - } else if (c) { + } else { // normal bind core::cmd() << key->bind(convert_SDL_modifier(keyboard_modifiers)) << "\n"; } |