MCPcopy Create free account
hub / github.com/BernardoGiordano/Checkpoint / update

Method update

switch/source/ScriptRequestOverlays.cpp:70–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68}
69
70void ScriptTileOverlay::update(const InputState& input)
71{
72 if (input.kDown & HidNpadButton_Y) {
73 ScriptScreen::toggleLogFocus();
74 return;
75 }
76 // With the log focused the pad belongs to the transcript (main.cpp scrolls
77 // it), so no key can answer the request by accident while the card that
78 // asked it is off screen.
79 if (!ScriptScreen::logFocused()) {
80 handleInput(input);
81 }
82}
83
84void ScriptTileOverlay::answer(UiResponse resp)
85{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected