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

Method OnInput

Goldleaf/source/ui/ui_AboutLayout.cpp:30–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28namespace ui {
29
30 void AboutLayout::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 else if(keys_down & HidNpadButton_A) {
35 g_MainApplication->ShowLayout(g_MainApplication->GetUpdateLayout());
36 g_MainApplication->GetUpdateLayout()->StartUpdateSearch();
37 }
38 }
39
40 AboutLayout::AboutLayout() {
41 this->logo_img = pu::ui::elm::Image::New(448, 324, pu::sdl2::TextureHandle::New(pu::ui::render::LoadImageFromFile(g_Settings.PathForResource("/Logo.png"))));

Callers

nothing calls this directly

Calls 3

ReturnToParentLayoutMethod · 0.80
ShowLayoutMethod · 0.80
StartUpdateSearchMethod · 0.80

Tested by

no test coverage detected