Finalize session input policy host sync
Some checks are pending
Build / setup (push) Waiting to run
Build / build-appimage (push) Blocked by required conditions
Build / build-steamlink (push) Blocked by required conditions
Build / build-windows-macos (push) Blocked by required conditions

This commit is contained in:
Joey Yakimowich-Payne 2026-02-12 00:38:05 -07:00
commit 7e9a4add09
5 changed files with 81 additions and 3 deletions

View file

@ -293,6 +293,15 @@ void SdlInputHandler::raiseAllKeys()
m_KeysDown.clear();
}
void SdlInputHandler::raiseAllMouseButtons()
{
LiSendMouseButtonEvent(BUTTON_ACTION_RELEASE, BUTTON_LEFT);
LiSendMouseButtonEvent(BUTTON_ACTION_RELEASE, BUTTON_MIDDLE);
LiSendMouseButtonEvent(BUTTON_ACTION_RELEASE, BUTTON_RIGHT);
LiSendMouseButtonEvent(BUTTON_ACTION_RELEASE, BUTTON_X1);
LiSendMouseButtonEvent(BUTTON_ACTION_RELEASE, BUTTON_X2);
}
void SdlInputHandler::notifyMouseLeave()
{
// SDL on Windows doesn't send the mouse button up until the mouse re-enters the window