Utility: Add CursorController

This commit is contained in:
Lynix
2017-01-19 14:17:26 +01:00
parent 282538876b
commit b884f5783c
5 changed files with 82 additions and 10 deletions

View File

@@ -29,6 +29,20 @@ namespace Nz
Window* fullscreenWindow = nullptr;
}
Window::Window() :
m_impl(nullptr),
m_asyncWindow(false),
m_closeOnQuit(true),
m_eventPolling(false),
m_waitForEvent(false)
{
m_cursorController.OnCursorUpdated.Connect([this](const CursorController*, const Cursor& cursor)
{
if (IsValid())
SetCursor(cursor);
});
}
Window::~Window()
{
Destroy();