Add support for sending X1 and X2 mouse buttons. Fixes #91

This commit is contained in:
Cameron Gutman 2018-10-03 17:56:42 -07:00
parent 22ed7f4e49
commit 1b4e75f49e
2 changed files with 5 additions and 3 deletions

View file

@ -426,9 +426,11 @@ void SdlInputHandler::handleMouseButtonEvent(SDL_MouseButtonEvent* event)
button = BUTTON_RIGHT;
break;
case SDL_BUTTON_X1:
button = BUTTON_X1;
break;
case SDL_BUTTON_X2:
// Unsupported by GameStream
return;
button = BUTTON_X2;
break;
default:
SDL_LogInfo(SDL_LOG_CATEGORY_APPLICATION,
"Unhandled button event: %d",

@ -1 +1 @@
Subproject commit 487a62f58ce79a4ff455129e0dfcd2ee9da30dd0
Subproject commit 558ba488e8eb7a614b6d9a93968c7c69683f942d