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

Method OnInput

Goldleaf/source/ui/ui_ApplicationContentsLayout.cpp:42–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40 }
41
42 void ApplicationContentsLayout::OnInput(const u64 keys_down, const u64 keys_up, const u64 keys_held, const pu::ui::TouchPoint touch_pos) {
43 if(keys_down & HidNpadButton_B) {
44 g_MainApplication->ReturnToParentLayout();
45 }
46 }
47
48 ApplicationContentsLayout::ApplicationContentsLayout() {
49 this->cnts_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 1

ReturnToParentLayoutMethod · 0.80

Tested by

no test coverage detected