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",