Browse Source

Sdl2Application: make mouse locking functions public.

pull/7/head
Vladimír Vondruš 14 years ago
parent
commit
ddc0652272
  1. 2
      src/Platform/Sdl2Application.h

2
src/Platform/Sdl2Application.h

@ -122,6 +122,7 @@ class Sdl2Application {
/** @{ @name Mouse handling */ /** @{ @name Mouse handling */
public:
/** @brief Whether mouse is locked */ /** @brief Whether mouse is locked */
inline bool isMouseLocked() const { inline bool isMouseLocked() const {
return SDL_GetRelativeMouseMode(); return SDL_GetRelativeMouseMode();
@ -138,6 +139,7 @@ class Sdl2Application {
SDL_SetRelativeMouseMode(enabled ? SDL_TRUE : SDL_FALSE); SDL_SetRelativeMouseMode(enabled ? SDL_TRUE : SDL_FALSE);
} }
protected:
/** /**
* @brief Mouse press event * @brief Mouse press event
* *

Loading…
Cancel
Save