| 155 | } |
| 156 | |
| 157 | cc_bool Hotkeys_Remove(int trigger, cc_uint8 modifiers) { |
| 158 | struct HotkeyData* hk = HotkeysList; |
| 159 | int i, j; |
| 160 | |
| 161 | for (i = 0; i < HotkeysText.count; i++, hk++) { |
| 162 | if (hk->trigger != trigger || hk->mods != modifiers) continue; |
| 163 | Hotkeys_RemoveText(hk->textIndex); |
| 164 | |
| 165 | for (j = i; j < HotkeysText.count; j++) { |
| 166 | HotkeysList[j] = HotkeysList[j + 1]; |
| 167 | } |
| 168 | return true; |
| 169 | } |
| 170 | return false; |
| 171 | } |
| 172 | |
| 173 | int Hotkeys_FindPartial(int key) { |
| 174 | struct HotkeyData hk; |
no test coverage detected