Change mouse icon on hover

This commit is contained in:
Adria 2026-04-16 13:04:16 +02:00
parent 78d4bc80cf
commit 5f65864000
3 changed files with 17 additions and 0 deletions

View file

@ -390,6 +390,12 @@ float KeyboardMouseInput::GetLookY(float sensitivity) const
return static_cast<float>(-m_mouseDeltaY) * sensitivity;
}
void KeyboardMouseInput::SetCursorIcon(LPCWSTR cursorName)
{
HCURSOR hCursor = LoadCursorW(nullptr, cursorName);
if (hCursor) SetCursor(hCursor);
}
void KeyboardMouseInput::OnChar(wchar_t c)
{
int next = (m_charBufferHead + 1) % CHAR_BUFFER_SIZE;