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

Method OnInput

Goldleaf/source/ui/ui_SettingsLayout.cpp:31–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29namespace ui {
30
31 void SettingsLayout::OnInput(const u64 keys_down, const u64 keys_up, const u64 keys_held, const pu::ui::TouchPoint touch_pos) {
32 if(keys_down & HidNpadButton_B) {
33 g_MainApplication->ReturnToParentLayout();
34 }
35 }
36
37 SettingsLayout::SettingsLayout() : pu::ui::Layout() {
38 this->options_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