mirror of
https://github.com/Kiritow/MiniEngine.git
synced 2024-03-22 13:11:22 +08:00
Add Cursor activating method.
This commit is contained in:
parent
0c5186c11a
commit
76010ebd43
|
@ -864,6 +864,11 @@ namespace MiniEngine
|
|||
SDL_ShowCursor(Settings?SDL_ENABLE:SDL_DISABLE);
|
||||
}
|
||||
|
||||
void Cursor::activate()
|
||||
{
|
||||
SDL_SetCursor(_get());
|
||||
}
|
||||
|
||||
bool Renderer::isReady()
|
||||
{
|
||||
return (_get() != nullptr);
|
||||
|
|
|
@ -252,6 +252,8 @@ namespace MiniEngine
|
|||
|
||||
static void show(bool);
|
||||
static bool isShow();
|
||||
|
||||
void activate();
|
||||
private:
|
||||
std::shared_ptr<SDL_Cursor> _cur;
|
||||
void _set(SDL_Cursor*);
|
||||
|
|
Loading…
Reference in New Issue
Block a user