diff --git a/UI/MenuScreens.cpp b/UI/MenuScreens.cpp index 7e2e0b33e..1fb517f7c 100644 --- a/UI/MenuScreens.cpp +++ b/UI/MenuScreens.cpp @@ -1781,6 +1781,19 @@ FileSelectScreen::FileSelectScreen(const FileSelectScreenOptions &options) : opt updateListing(); } +void FileSelectScreen::key(const KeyInput &key) { + if (key.flags & KEY_DOWN) { + switch (key.keyCode) { + case KEYCODE_EXT_MOUSEWHEEL_UP: + list_.scrollRelative(-50); + break; + case KEYCODE_EXT_MOUSEWHEEL_DOWN: + list_.scrollRelative(50); + break; + } + } +} + void FileSelectScreen::updateListing() { listing_.clear(); getFilesInDir(currentDirectory_.c_str(), &listing_, options_.filter); @@ -1850,7 +1863,6 @@ void CreditsScreen::update(InputState &input_state) { void CreditsScreen::render() { - I18NCategory *c = GetI18NCategory("PSPCredits"); const char * credits[] = { diff --git a/UI/MenuScreens.h b/UI/MenuScreens.h index 4276cf757..9b1eb572a 100644 --- a/UI/MenuScreens.h +++ b/UI/MenuScreens.h @@ -187,6 +187,7 @@ public: // Override these to for example write the current directory to a config file. virtual void onSelectFile() {} virtual void onCancel() {} + void key(const KeyInput &key); private: void updateListing(); diff --git a/native b/native index 7a8076f3b..57d3fa013 160000 --- a/native +++ b/native @@ -1 +1 @@ -Subproject commit 7a8076f3b216a2577f1fa52f67622f7ace4b525b +Subproject commit 57d3fa01345d447cad3d943838a74c71e4e08a7e