From 7300be7f3f6d246a48dd4ba2e2af1686c947819b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Thu, 24 Oct 2024 19:22:36 +0200 Subject: [PATCH] Platform: looks like I forgot how to C++ here. --- src/Magnum/Platform/EmscriptenApplication.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Magnum/Platform/EmscriptenApplication.h b/src/Magnum/Platform/EmscriptenApplication.h index 6d2864f3b..f40874383 100644 --- a/src/Magnum/Platform/EmscriptenApplication.h +++ b/src/Magnum/Platform/EmscriptenApplication.h @@ -2079,7 +2079,7 @@ class EmscriptenApplication::PointerEvent: public InputEvent { PointerEvent& operator=(PointerEvent&&) = delete; /** @brief Pointer event source */ - PointerEventSource source() { return _source; } + PointerEventSource source() const { return _source; } /** * @brief Pointer type that was pressed or released @@ -2243,7 +2243,7 @@ class EmscriptenApplication::PointerMoveEvent: public InputEvent { * case it's a movement with both @ref pointer() and @ref pointers() * being empty. */ - PointerEventSource source() { return _source; } + PointerEventSource source() const { return _source; } /** * @brief Pointer type that was added or removed from the set of pressed pointers