mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-05-17 04:43:51 +00:00
Change mouse icon on hover
This commit is contained in:
parent
78d4bc80cf
commit
5f65864000
3 changed files with 17 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue