MCPcopy Create free account
hub / github.com/Stewmath/GameYob / checkKeyAssignedToMenu

Function checkKeyAssignedToMenu

arm9/source/inputhelper.cpp:111–119  ·  view source on GitHub ↗

Return false if there is no key assigned to opening the menu (including touch).

Source from the content-addressed store, hash-verified

109
110// Return false if there is no key assigned to opening the menu (including touch).
111bool checkKeyAssignedToMenu(KeyConfig* config) {
112 for (int i=0; i<NUM_DS_KEYS; i++) {
113 if (config->gbKeys[i] == KEY_MENU || config->gbKeys[i] == KEY_MENU_PAUSE) {
114 return true;
115 }
116 }
117
118 return false;
119}
120
121void loadKeyConfig() {
122 KeyConfig* keyConfig = &keyConfigs[selectedKeyConfig];

Callers 2

loadKeyConfigFunction · 0.85
updateKeyConfigChooserFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected