| 29 | namespace 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())); |
nothing calls this directly
no test coverage detected