summaryrefslogtreecommitdiff
path: root/ui
diff options
context:
space:
mode:
Diffstat (limited to 'ui')
-rw-r--r--ui/window.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/ui/window.cpp b/ui/window.cpp
index 3569915..73ed0c1 100644
--- a/ui/window.cpp
+++ b/ui/window.cpp
@@ -63,6 +63,10 @@ Window::handleInput(const SDL_Event & e)
SDL_GetWindowSize(m_window, &size.x, &size.y);
eAdjusted.button.y = size.y - e.button.y;
break;
+ case SDL_MOUSEMOTION:
+ SDL_GetWindowSize(m_window, &size.x, &size.y);
+ eAdjusted.motion.y = size.y - e.motion.y;
+ break;
}
uiComponents.rapplyOne(&UIComponent::handleInput, eAdjusted, UIComponent::Position {{}, size});
return true;