| 501 | } |
| 502 | |
| 503 | void InputBind_Set(InputBind binding, int btn, const struct InputDevice* device) { |
| 504 | cc_string name; char nameBuffer[STRING_SIZE]; |
| 505 | cc_string value; |
| 506 | String_InitArray(name, nameBuffer); |
| 507 | |
| 508 | String_Format1(&name, device->bindPrefix, bindNames[binding]); |
| 509 | value = String_FromReadonly(Input_StorageNames[btn]); |
| 510 | Options_SetString(&name, &value); |
| 511 | |
| 512 | BindMapping_Set(&device->currentBinds[binding], btn, 0); |
| 513 | } |
| 514 | |
| 515 | void InputBind_Reset(InputBind binding, const struct InputDevice* device) { |
| 516 | cc_string name; char nameBuffer[STRING_SIZE]; |
no test coverage detected