diff options
Diffstat (limited to 'src/client/input.cc')
-rw-r--r-- | src/client/input.cc | 6 |
1 files changed, 3 insertions, 3 deletions
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: |