From 02fcd22d8cde355aa898a8c6bb4773d9434b8e9a Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Fri, 10 Oct 2008 16:41:38 +0000 Subject: adds KeyPress, DevInfo and Stats widgets --- src/client/input.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/client/input.cc') diff --git a/src/client/input.cc b/src/client/input.cc index 0020a1f..31d514f 100644 --- a/src/client/input.cc +++ b/src/client/input.cc @@ -528,7 +528,7 @@ void key_pressed(Key *key) console()->keypressed(translate_keysym(key->sym(), keyboard_modifiers)); } else if (ui::root()->active()) { - ui::root()->event_keypress(key->sym(), keyboard_modifiers); + ui::root()->input_key(true, key->sym(), keyboard_modifiers); } else if (chat::visible()) { // send key events to the chat box @@ -559,7 +559,7 @@ void key_pressed(Key *key) void key_released(Key *key) { if (ui::root()->active()) { - ui::root()->event_keyrelease(key->sym(), keyboard_modifiers); + ui::root()->input_key(false, key->sym(), keyboard_modifiers); } if (core::application()->connected() && core::localcontrol()) { @@ -714,7 +714,7 @@ void frame(float seconds) mouse_x = event.motion.x; mouse_y = event.motion.y; mouse_lastmoved = client()->time(); - ui::root()->event_mousemove((float) mouse_x, (float) mouse_y); + ui::root()->input_mouse((float) mouse_x, (float) mouse_y); break; case SDL_MOUSEBUTTONDOWN: -- cgit v1.2.3