aboutsummaryrefslogtreecommitdiff
path: root/src/platform/gui/sdl/Window.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/platform/gui/sdl/Window.cpp')
-rw-r--r--src/platform/gui/sdl/Window.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/platform/gui/sdl/Window.cpp b/src/platform/gui/sdl/Window.cpp
index 1c2d53bc..e0898cb1 100644
--- a/src/platform/gui/sdl/Window.cpp
+++ b/src/platform/gui/sdl/Window.cpp
@@ -132,7 +132,7 @@ IEvent<WindowVisibilityType> *SdlWindow::VisibilityChangeEvent() {
return &visibility_change_event_;
}
-IEvent<Size> *SdlWindow::ResizeEvent() { return &resize_event_; }
+IEvent<const Size&> *SdlWindow::ResizeEvent() { return &resize_event_; }
IEvent<FocusChangeType> *SdlWindow::FocusEvent() { return &focus_event_; }
@@ -140,25 +140,25 @@ IEvent<MouseEnterLeaveType> *SdlWindow::MouseEnterLeaveEvent() {
return &mouse_enter_leave_event_;
}
-IEvent<Point> *SdlWindow::MouseMoveEvent() { return &mouse_move_event_; }
+IEvent<const Point&> *SdlWindow::MouseMoveEvent() { return &mouse_move_event_; }
-IEvent<NativeMouseButtonEventArgs> *SdlWindow::MouseDownEvent() {
+IEvent<const NativeMouseButtonEventArgs&> *SdlWindow::MouseDownEvent() {
return &mouse_down_event_;
}
-IEvent<NativeMouseButtonEventArgs> *SdlWindow::MouseUpEvent() {
+IEvent<const NativeMouseButtonEventArgs&> *SdlWindow::MouseUpEvent() {
return &mouse_up_event_;
}
-IEvent<NativeMouseWheelEventArgs> *SdlWindow::MouseWheelEvent() {
+IEvent<const NativeMouseWheelEventArgs&> *SdlWindow::MouseWheelEvent() {
return &mouse_wheel_event_;
}
-IEvent<NativeKeyEventArgs> *SdlWindow::KeyDownEvent() {
+IEvent<const NativeKeyEventArgs&> *SdlWindow::KeyDownEvent() {
return &key_down_event_;
}
-IEvent<NativeKeyEventArgs> *SdlWindow::KeyUpEvent() { return &key_up_event_; }
+IEvent<const NativeKeyEventArgs&> *SdlWindow::KeyUpEvent() { return &key_up_event_; }
IInputMethodContext *SdlWindow::GetInputMethodContext() { NotImplemented(); }