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>2009-04-15 17:08:51 +0000
committerStijn Buys <ingar@osirion.org>2009-04-15 17:08:51 +0000
commita95028547981614e06ea7a6d22b853b85418cea3 (patch)
treed4d6998a4118a4d8690ce138d586abfba4893179 /src/client/input.cc
parent4f33f59571f10019c1e7a0e3640b2f69c159a8cf (diff)
added info registry, list_info
added network info transfer added info based buy menu and related game changes
Diffstat (limited to 'src/client/input.cc')
-rw-r--r--src/client/input.cc7
1 files changed, 6 insertions, 1 deletions
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 == '+') {