mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-09-13 22:36:35 -04:00
Update controller support for scroll window to use the keybaord for smoother scrolling
This commit is contained in:
parent
8ae193abe8
commit
6da6b9b98f
@ -143,10 +143,8 @@ namespace MWGui
|
||||
}
|
||||
else if (arg.button == SDL_CONTROLLER_BUTTON_B)
|
||||
onCloseButtonClicked(mCloseButton);
|
||||
else if (arg.button == SDL_CONTROLLER_BUTTON_DPAD_UP)
|
||||
onKeyButtonPressed(nullptr, MyGUI::KeyCode::ArrowUp, 0);
|
||||
else if (arg.button == SDL_CONTROLLER_BUTTON_DPAD_DOWN)
|
||||
onKeyButtonPressed(nullptr, MyGUI::KeyCode::ArrowDown, 0);
|
||||
else if (arg.button == SDL_CONTROLLER_BUTTON_DPAD_UP || arg.button == SDL_CONTROLLER_BUTTON_DPAD_DOWN)
|
||||
return false; // Fall through to keyboard
|
||||
|
||||
return true;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user