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

Function InputHandler_Toggle

src/InputHandler.c:556–563  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

554}
555
556static void InputHandler_Toggle(int key, cc_bool* target, const char* enableMsg, const char* disableMsg) {
557 *target = !(*target);
558 if (*target) {
559 Chat_Add2("%c. &ePress &a%c &eto disable.", enableMsg, Input_DisplayNames[key]);
560 } else {
561 Chat_Add2("%c. &ePress &a%c &eto re-enable.", disableMsg, Input_DisplayNames[key]);
562 }
563}
564
565cc_bool InputHandler_SetFOV(int fov) {
566 struct HacksComp* h = &Entities.CurPlayer->Hacks;

Callers 4

BindTriggered_AxisLinesFunction · 0.85
BindTriggered_AutoRotateFunction · 0.85

Calls 1

Chat_Add2Function · 0.85

Tested by

no test coverage detected