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

Method OnInput

Goldleaf/source/ui/ui_MainApplication.cpp:388–400  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

386 }
387
388 void MainApplication::OnInput(const u64 down, const u64 up, const u64 held) {
389 if(!hos::IsExitLocked()) {
390 if(down & HidNpadButton_Plus) {
391 this->CloseWithFadeOut();
392 }
393 else if(down & HidNpadButton_Minus) {
394 this->helpImage_OnClick();
395 }
396 else if((down & HidNpadButton_ZL) || (down & HidNpadButton_ZR)) {
397 ShowPowerTasksDialog(cfg::Strings.GetString(229), cfg::Strings.GetString(230));
398 }
399 }
400 }
401
402 void UpdateClipboard(const std::string &path) {
403 SetClipboard(path);

Callers

nothing calls this directly

Calls 3

helpImage_OnClickMethod · 0.95
IsExitLockedFunction · 0.85
ShowPowerTasksDialogFunction · 0.85

Tested by

no test coverage detected