From 9e055884dc7639bf49bd301350982f27c428972c Mon Sep 17 00:00:00 2001 From: kiritow <1362050620@qq.com> Date: Fri, 21 Apr 2017 22:59:25 +0800 Subject: [PATCH] Add implements of some methods in class Cursor --- MiniEngine.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/MiniEngine.cpp b/MiniEngine.cpp index 1d09c2f..d14822d 100644 --- a/MiniEngine.cpp +++ b/MiniEngine.cpp @@ -836,6 +836,22 @@ namespace MiniEngine return ns; } + //static + Cursor Cursor::GetActiveCursor() + { + Cursor ns; + ns._set(SDL_GetCursor()); + return ns; + } + + //static + Cursor Cursor::GetDefaultCursor() + { + Cursor ns; + ns._set(SDL_GetDefaultCursor()); + return ns; + } + //static bool Cursor::isShow() {