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