Add horizontal scrolling in mouse emulation mode
This commit is contained in:
parent
35e226273c
commit
332d4433c4
1 changed files with 6 additions and 0 deletions
|
|
@ -212,6 +212,12 @@ void SdlInputHandler::handleControllerButtonEvent(SDL_ControllerButtonEvent* eve
|
||||||
else if (event->button == SDL_CONTROLLER_BUTTON_DPAD_DOWN) {
|
else if (event->button == SDL_CONTROLLER_BUTTON_DPAD_DOWN) {
|
||||||
LiSendScrollEvent(-1);
|
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 {
|
else {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue