diff options
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";  		} | 
