Skip to content
This repository has been archived by the owner on Jul 17, 2023. It is now read-only.

Page up and page down for fast scrolling #22

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 6 additions & 0 deletions source/ui/netInstPage.cpp
Expand Up @@ -213,6 +213,12 @@ namespace inst::ui {
this->drawMenuItems(true);
this->menu->SetSelectedIndex(0);
}

if (Down & HidNpadButton_ZL)
this->menu->SetSelectedIndex(std::max(0, this->menu->GetSelectedIndex() - 6));
if (Down & HidNpadButton_ZR)
this->menu->SetSelectedIndex(std::min((s32)this->menu->GetItems().size() - 1, this->menu->GetSelectedIndex() + 6));

if (Down & HidNpadButton_Plus) {
if (this->selectedUrls.size() == 0) {
this->selectTitle(this->menu->GetSelectedIndex());
Expand Down
6 changes: 6 additions & 0 deletions source/ui/sdInstPage.cpp
Expand Up @@ -196,6 +196,12 @@ namespace inst::ui {
if ((Down & HidNpadButton_X)) {
inst::ui::mainApp->CreateShowDialog("inst.sd.help.title"_lang, "inst.sd.help.desc"_lang, {"common.ok"_lang}, true);
}*/

if (Down & HidNpadButton_ZL)
this->menu->SetSelectedIndex(std::max(0, this->menu->GetSelectedIndex() - 6));
if (Down & HidNpadButton_ZR)
this->menu->SetSelectedIndex(std::min((s32)this->menu->GetItems().size() - 1, this->menu->GetSelectedIndex() + 6));

if (Down & HidNpadButton_X) {
hideInstalled = !hideInstalled;
this->butText->SetText(hideInstalled ? "inst.sd.buttons_show"_lang : "inst.sd.buttons"_lang);
Expand Down
6 changes: 6 additions & 0 deletions source/ui/usbHDDInstPage.cpp
Expand Up @@ -203,6 +203,12 @@ namespace inst::ui {
if ((Down & HidNpadButton_X)) {
inst::ui::mainApp->CreateShowDialog("inst.hdd.help.title"_lang, "inst.hdd.help.desc"_lang, {"common.ok"_lang}, true);
}*/

if (Down & HidNpadButton_ZL)
this->menu->SetSelectedIndex(std::max(0, this->menu->GetSelectedIndex() - 6));
if (Down & HidNpadButton_ZR)
this->menu->SetSelectedIndex(std::min((s32)this->menu->GetItems().size() - 1, this->menu->GetSelectedIndex() + 6));

if (Down & HidNpadButton_X) {
hideInstalled = !hideInstalled;
this->butText->SetText(hideInstalled ? "inst.hdd.buttons_show"_lang : "inst.hdd.buttons"_lang);
Expand Down