diff options
author | chai <chaifix@163.com> | 2018-10-16 23:09:18 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2018-10-16 23:09:18 +0800 |
commit | 5534828032730762f8c1e4daf924b466fffb8be0 (patch) | |
tree | 1ae83fc877e4a2d136f6dd120260edd147b13e95 /src/libjin/Input/Mouse.cpp | |
parent | 0fc4b3ad5f2ac8d5c0588f61c0cbed4349ee1430 (diff) |
*格式化代码
Diffstat (limited to 'src/libjin/Input/Mouse.cpp')
-rw-r--r-- | src/libjin/Input/Mouse.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/libjin/Input/Mouse.cpp b/src/libjin/Input/Mouse.cpp index 31c29f9..3869337 100644 --- a/src/libjin/Input/Mouse.cpp +++ b/src/libjin/Input/Mouse.cpp @@ -6,22 +6,22 @@ namespace jin { -namespace input -{ + namespace input + { - void Mouse::getState(int* x, int* y) - { - #ifdef LIBJIN_INPUT_SDL - SDL_GetMouseState(x, y); - #endif // LIBJIN_INPUT_SDL - } + void Mouse::getState(int* x, int* y) + { + #ifdef LIBJIN_INPUT_SDL + SDL_GetMouseState(x, y); + #endif // LIBJIN_INPUT_SDL + } - void Mouse::setVisible(bool visible) - { - SDL_ShowCursor(visible ? SDL_ENABLE : SDL_DISABLE); - } + void Mouse::setVisible(bool visible) + { + SDL_ShowCursor(visible ? SDL_ENABLE : SDL_DISABLE); + } -} // input + } // input } // jin #endif // LIBJIN_MODULES_INPUT
\ No newline at end of file |