From fdcfa419de8d19fa2e0eb08b42b769b2fbdcfc2f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Tue, 5 Nov 2019 13:49:26 +0100 Subject: [PATCH] Platform: fix compilation on Emscripten. --- src/Magnum/Platform/Sdl2Application.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/Magnum/Platform/Sdl2Application.h b/src/Magnum/Platform/Sdl2Application.h index b16c7395c..dcde9550c 100644 --- a/src/Magnum/Platform/Sdl2Application.h +++ b/src/Magnum/Platform/Sdl2Application.h @@ -868,10 +868,16 @@ class Sdl2Application { Cursor cursor(); #endif - /** @brief Warp mouse cursor to given coordinates */ + #ifndef CORRADE_TARGET_EMSCRIPTEN + /** + * @brief Warp mouse cursor to given coordinates + * + * @note Not available in @ref CORRADE_TARGET_EMSCRIPTEN "Emscripten". + */ void warpCursor(const Vector2i& position) { SDL_WarpMouseInWindow(_window, position.x(), position.y()); } + #endif /** @brief Whether mouse is locked */ bool isMouseLocked() const { return SDL_GetRelativeMouseMode(); }