aboutsummaryrefslogtreecommitdiff
path: root/src/libjin/input/mouse.cpp
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2020-02-11 11:29:07 +0800
committerchai <chaifix@163.com>2020-02-11 11:29:07 +0800
commit160e1299ef3d95f8e8c48706d7f61dd3dc6c6b60 (patch)
treeabe5ae5242d9cc6caf6edf103e662c44e978fca0 /src/libjin/input/mouse.cpp
parente095043485d1d298571af6d9eca7f0db9009ea7a (diff)
*修改 tab大小HEADmaster
Diffstat (limited to 'src/libjin/input/mouse.cpp')
-rw-r--r--src/libjin/input/mouse.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/libjin/input/mouse.cpp b/src/libjin/input/mouse.cpp
index 4971137..98e641b 100644
--- a/src/libjin/input/mouse.cpp
+++ b/src/libjin/input/mouse.cpp
@@ -1,5 +1,5 @@
#include "../core/configuration.h"
-#if defined(jin_input)
+#if defined(jin_input)
#include "SDL.h"
@@ -7,22 +7,22 @@
namespace JinEngine
{
- namespace Input
- {
+ namespace Input
+ {
- void Mouse::getState(int* x, int* y)
- {
- #ifdef jin_input == jin_input_sdl
- SDL_GetMouseState(x, y);
- #endif
- }
+ void Mouse::getState(int* x, int* y)
+ {
+ #ifdef jin_input == jin_input_sdl
+ SDL_GetMouseState(x, y);
+ #endif
+ }
- void Mouse::setVisible(bool visible)
- {
- SDL_ShowCursor(visible ? SDL_ENABLE : SDL_DISABLE);
- }
+ void Mouse::setVisible(bool visible)
+ {
+ SDL_ShowCursor(visible ? SDL_ENABLE : SDL_DISABLE);
+ }
- } // namespace Input
+ } // namespace Input
} // namespace JinEngine
#endif // defined(jin_input) \ No newline at end of file