mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-29 09:35:39 +00:00
Added key repeat for the 'Jump to' and 'Sort games by' selectors on the game options menu.
This commit is contained in:
parent
a4d2b87ede
commit
72cf219b05
|
@ -99,6 +99,10 @@ GuiGamelistOptions::GuiGamelistOptions(Window* window, SystemData* system)
|
||||||
mJumpToLetterList =
|
mJumpToLetterList =
|
||||||
std::make_shared<LetterList>(mWindow, getHelpStyle(), "JUMP TO...", false);
|
std::make_shared<LetterList>(mWindow, getHelpStyle(), "JUMP TO...", false);
|
||||||
|
|
||||||
|
// Enable key repeat so that the left or right button can be held to cycle through
|
||||||
|
// the letters.
|
||||||
|
mJumpToLetterList->setKeyRepeat(true);
|
||||||
|
|
||||||
// Populate the quick selector.
|
// Populate the quick selector.
|
||||||
for (unsigned int i = 0; i < mFirstLetterIndex.size(); i++) {
|
for (unsigned int i = 0; i < mFirstLetterIndex.size(); i++) {
|
||||||
mJumpToLetterList->add(mFirstLetterIndex[i], mFirstLetterIndex[i], 0);
|
mJumpToLetterList->add(mFirstLetterIndex[i], mFirstLetterIndex[i], 0);
|
||||||
|
@ -132,6 +136,11 @@ GuiGamelistOptions::GuiGamelistOptions(Window* window, SystemData* system)
|
||||||
else
|
else
|
||||||
mListSort->add(sort.description, &sort, false);
|
mListSort->add(sort.description, &sort, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Enable key repeat so that the left or right button can be held to cycle through
|
||||||
|
// the sort options.
|
||||||
|
mListSort->setKeyRepeat(true);
|
||||||
|
|
||||||
// Don't show the sort type option if the gamelist type is recent/last played.
|
// Don't show the sort type option if the gamelist type is recent/last played.
|
||||||
if (system->getName() != "recent")
|
if (system->getName() != "recent")
|
||||||
mMenu.addWithLabel("SORT GAMES BY", mListSort);
|
mMenu.addWithLabel("SORT GAMES BY", mListSort);
|
||||||
|
|
Loading…
Reference in a new issue