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

Function StoredHotkeys_Remove

src/InputHandler.c:234–240  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

232}
233
234void StoredHotkeys_Remove(int trigger, cc_uint8 modifiers) {
235 cc_string key; char keyBuffer[STRING_SIZE];
236 String_InitArray(key, keyBuffer);
237
238 String_Format2(&key, "hotkey-%c&%b", Input_StorageNames[trigger], &modifiers);
239 Options_SetString(&key, NULL);
240}
241
242void StoredHotkeys_Add(int trigger, cc_uint8 modifiers, cc_bool moreInput, const cc_string* text) {
243 cc_string key; char keyBuffer[STRING_SIZE];

Callers 2

Calls 2

String_Format2Function · 0.85
Options_SetStringFunction · 0.85

Tested by

no test coverage detected