Browse Source

Platform: minor code reordering.

pull/183/head^2
Vladimír Vondruš 10 years ago
parent
commit
082e02a013
  1. 2
      src/Magnum/Platform/Sdl2Application.cpp
  2. 6
      src/Magnum/Platform/Sdl2Application.h

2
src/Magnum/Platform/Sdl2Application.cpp

@ -32,8 +32,8 @@
#include <emscripten/emscripten.h>
#endif
#include "Magnum/Platform/Context.h"
#include "Magnum/Version.h"
#include "Magnum/Platform/Context.h"
#include "Magnum/Platform/ScreenedApplication.hpp"
namespace Magnum { namespace Platform {

6
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) {}

Loading…
Cancel
Save