diff options
Diffstat (limited to 'src/gui/char_server.cpp')
-rw-r--r-- | src/gui/char_server.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gui/char_server.cpp b/src/gui/char_server.cpp index c0f1c523..781f4a37 100644 --- a/src/gui/char_server.cpp +++ b/src/gui/char_server.cpp @@ -126,6 +126,12 @@ void char_server() { case SDL_QUIT: state = EXIT; break; + + case SDL_MOUSEMOTION: + // Update the known mouse position + mouseX = event.motion.x; + mouseY = event.motion.y; + break; } guiInput->pushInput(event); |