MCPcopy Create free account
hub / github.com/devkitPro/3ds-hbmenu / checkLogoAdv

Function checkLogoAdv

source/ui/background.c:172–192  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

170}
171
172static bool checkLogoAdv(u32 down)
173{
174 static const u32 params[] = { KEY_UP, KEY_UP, KEY_DOWN, KEY_DOWN, KEY_LEFT, KEY_RIGHT, KEY_LEFT, KEY_RIGHT, KEY_L, KEY_R };
175 static u32 state, timeout;
176
177 if (down & params[state])
178 {
179 state++;
180 timeout = 30;
181 if (state == sizeof(params)/sizeof(params[0]))
182 {
183 state = 0;
184 return true;
185 }
186 }
187
188 if (timeout && !--timeout)
189 state = 0;
190
191 return false;
192}
193
194void backgroundUpdate(void)
195{

Callers 1

backgroundUpdateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected