MCPcopy Create free account
hub / github.com/ClassiCube/ClassiCube / Hotkeys_RemoveText

Function Hotkeys_RemoveText

src/InputHandler.c:130–138  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

128}
129
130static void Hotkeys_RemoveText(int index) {
131 struct HotkeyData* hKey = HotkeysList;
132 int i;
133
134 for (i = 0; i < HotkeysText.count; i++, hKey++) {
135 if (hKey->textIndex >= index) hKey->textIndex--;
136 }
137 StringsBuffer_Remove(&HotkeysText, index);
138}
139
140
141void Hotkeys_Add(int trigger, cc_uint8 modifiers, const cc_string* text, cc_uint8 flags) {

Callers 2

Hotkeys_AddFunction · 0.85
Hotkeys_RemoveFunction · 0.85

Calls 1

StringsBuffer_RemoveFunction · 0.85

Tested by

no test coverage detected