diff --git a/src/Magnum/Platform/Sdl2Application.cpp b/src/Magnum/Platform/Sdl2Application.cpp index 08c128ffc..37012a120 100644 --- a/src/Magnum/Platform/Sdl2Application.cpp +++ b/src/Magnum/Platform/Sdl2Application.cpp @@ -32,8 +32,8 @@ #include #endif -#include "Magnum/Platform/Context.h" #include "Magnum/Version.h" +#include "Magnum/Platform/Context.h" #include "Magnum/Platform/ScreenedApplication.hpp" namespace Magnum { namespace Platform { diff --git a/src/Magnum/Platform/Sdl2Application.h b/src/Magnum/Platform/Sdl2Application.h index 0086aafa2..d98d488b8 100644 --- a/src/Magnum/Platform/Sdl2Application.h +++ b/src/Magnum/Platform/Sdl2Application.h @@ -897,6 +897,9 @@ class Sdl2Application::InputEvent { /** @brief Moving is not allowed */ InputEvent& operator=(InputEvent&&) = delete; + /** @brief Whether the event is accepted */ + constexpr bool isAccepted() const { return _accepted; } + /** * @brief Set event as accepted * @@ -907,9 +910,6 @@ class Sdl2Application::InputEvent { */ void setAccepted(bool accepted = true) { _accepted = accepted; } - /** @brief Whether the event is accepted */ - constexpr bool isAccepted() const { return _accepted; } - #ifndef DOXYGEN_GENERATING_OUTPUT protected: constexpr explicit InputEvent(): _accepted(false) {}