MCPcopy Create free account
hub / github.com/XorTroll/Goldleaf / OnInput

Method OnInput

Goldleaf/source/ui/ui_ExploreMenuLayout.cpp:31–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29namespace ui {
30
31 void ExploreMenuLayout::OnInput(const u64 keys_down, const u64 keys_up, const u64 keys_held, const pu::ui::TouchPoint touch_pos) {
32 if(drive::GetConsumeDrivesChanged() || (keys_down & HidNpadButton_Y)) {
33 this->ReloadMenu();
34 }
35
36 if(keys_down & HidNpadButton_B) {
37 g_MainApplication->ReturnToParentLayout();
38 }
39 }
40
41 ExploreMenuLayout::ExploreMenuLayout() : pu::ui::Layout() {
42 this->mounts_menu = pu::ui::elm::Menu::New(0, 280, pu::ui::render::ScreenWidth, g_Settings.GetColorScheme().menu_base, g_Settings.GetColorScheme().menu_base_focus, g_Settings.json_settings.ui.value().menu_item_size.value(), ComputeDefaultMenuItemCount(g_Settings.json_settings.ui.value().menu_item_size.value()));

Callers

nothing calls this directly

Calls 3

ReloadMenuMethod · 0.95
GetConsumeDrivesChangedFunction · 0.85
ReturnToParentLayoutMethod · 0.80

Tested by

no test coverage detected