Add horizontal scrolling in mouse emulation mode

This commit is contained in:
Cameron Gutman 2023-03-04 12:28:53 -06:00
parent 35e226273c
commit 332d4433c4

View file

@ -212,6 +212,12 @@ void SdlInputHandler::handleControllerButtonEvent(SDL_ControllerButtonEvent* eve
else if (event->button == SDL_CONTROLLER_BUTTON_DPAD_DOWN) {
LiSendScrollEvent(-1);
}
else if (event->button == SDL_CONTROLLER_BUTTON_DPAD_RIGHT) {
LiSendHScrollEvent(1);
}
else if (event->button == SDL_CONTROLLER_BUTTON_DPAD_LEFT) {
LiSendHScrollEvent(-1);
}
}
}
else {