aboutsummaryrefslogtreecommitdiff
path: root/src/libjin/Input/Mouse.cpp
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2018-09-07 13:30:44 +0800
committerchai <chaifix@163.com>2018-09-07 13:30:44 +0800
commite72188433348c270a54879da9f086f1b527b580f (patch)
treeb2cb92b37579c6f9cff77f52fc591426eb2d8286 /src/libjin/Input/Mouse.cpp
parent28ca1f570d417671904a25c2a9c589fdb1eb7a03 (diff)
*update
Diffstat (limited to 'src/libjin/Input/Mouse.cpp')
-rw-r--r--src/libjin/Input/Mouse.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libjin/Input/Mouse.cpp b/src/libjin/Input/Mouse.cpp
index a3c8e27..e284f78 100644
--- a/src/libjin/Input/Mouse.cpp
+++ b/src/libjin/Input/Mouse.cpp
@@ -16,6 +16,11 @@ namespace input
#endif // JIN_INPUT_SDL
}
+ void Mouse::setVisible(bool visible)
+ {
+ SDL_ShowCursor(visible ? SDL_ENABLE : SDL_DISABLE);
+ }
+
} // input
} // jin