MCPcopy Create free account
hub / github.com/XorTroll/uLaunch / OnMenuInput

Method OnMenuInput

projects/uMenu/source/ul/menu/ui/ui_ThemesMenuLayout.cpp:32–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30 }
31
32 void ThemesMenuLayout::OnMenuInput(const u64 keys_down, const u64 keys_up, const u64 keys_held, const pu::ui::TouchPoint touch_pos) {
33 if(keys_down & HidNpadButton_B) {
34 pu::audio::PlaySfx(this->back_sfx);
35
36 g_MenuApplication->LoadMenu(MenuType::Main);
37 }
38 }
39
40 bool ThemesMenuLayout::OnHomeButtonPress() {
41 pu::audio::PlaySfx(this->back_sfx);

Callers

nothing calls this directly

Calls 1

LoadMenuMethod · 0.80

Tested by

no test coverage detected