From a95028547981614e06ea7a6d22b853b85418cea3 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Wed, 15 Apr 2009 17:08:51 +0000 Subject: added info registry, list_info added network info transfer added info based buy menu and related game changes --- src/client/input.cc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/client/input.cc') diff --git a/src/client/input.cc b/src/client/input.cc index 3ccf15c..943bed1 100644 --- a/src/client/input.cc +++ b/src/client/input.cc @@ -516,6 +516,9 @@ void key_pressed(Key *key) } if (ui::root()->input_key(true, Keyboard::translate_keysym(key->sym(), keyboard_modifiers), keyboard_modifiers)) { + + // work-around for the mouse release event FIXME + //key->key_pressed = 0; return; } else if (!core::localplayer()->view() && core::application()->connected() && core::localcontrol()) { @@ -549,12 +552,14 @@ void key_released(Key *key) if (core::application()->connected() && core::localcontrol()) { + // FIXME mouse release selection should be handled inside the hud if ((key->sym() == 512 + SDL_BUTTON_LEFT) && targets::hover() && (key->waspressed() <= (input_mousedelay->value()/1000.0f) ) ) { // hovering target selected targets::select_target(targets::hover()); } - // the release event still must be processed as usual + + // the release event must still be processed as usual char c = 0; c = key->bind(Key::None).c_str()[0]; if (c == '+') { -- cgit v1.2.3