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