mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-06-16 21:51:17 +00:00
Add support for sending X1 and X2 mouse buttons. Fixes #91
This commit is contained in:
@@ -426,9 +426,11 @@ void SdlInputHandler::handleMouseButtonEvent(SDL_MouseButtonEvent* event)
|
|||||||
button = BUTTON_RIGHT;
|
button = BUTTON_RIGHT;
|
||||||
break;
|
break;
|
||||||
case SDL_BUTTON_X1:
|
case SDL_BUTTON_X1:
|
||||||
|
button = BUTTON_X1;
|
||||||
|
break;
|
||||||
case SDL_BUTTON_X2:
|
case SDL_BUTTON_X2:
|
||||||
// Unsupported by GameStream
|
button = BUTTON_X2;
|
||||||
return;
|
break;
|
||||||
default:
|
default:
|
||||||
SDL_LogInfo(SDL_LOG_CATEGORY_APPLICATION,
|
SDL_LogInfo(SDL_LOG_CATEGORY_APPLICATION,
|
||||||
"Unhandled button event: %d",
|
"Unhandled button event: %d",
|
||||||
|
|||||||
Submodule moonlight-common-c/moonlight-common-c updated: 487a62f58c...558ba488e8
Reference in New Issue
Block a user