18 lines
237 B
C++
18 lines
237 B
C++
#include "dl_input.h"
|
|
|
|
#ifndef DL_DISABLE_RENDER
|
|
#include "system/dl_system.h"
|
|
|
|
namespace dl
|
|
{
|
|
|
|
Input* g_input;
|
|
|
|
dl::Point Input::GetCursorPosition()
|
|
{
|
|
return Each::Limit(_cursorPos, {}, toPoint(g_system->GetWindowSize()));
|
|
}
|
|
|
|
}
|
|
|
|
#endif |