Return false if there is no key assigned to opening the menu (including touch).
| 109 | |
| 110 | // Return false if there is no key assigned to opening the menu (including touch). |
| 111 | bool 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 | |
| 121 | void loadKeyConfig() { |
| 122 | KeyConfig* keyConfig = &keyConfigs[selectedKeyConfig]; |
no outgoing calls
no test coverage detected