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

Method OnInput

Goldleaf/source/ui/ui_ApplicationListLayout.cpp:30–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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