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

Function VirtualKeyboard_Close

src/VirtualKeyboard.h:477–495  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

475}
476
477static void VirtualKeyboard_Close(void) {
478 /* TODO find a better way */
479 if (KB_MarkDirty == VirtualKeyboard_MarkDirty2D)
480 VirtualKeyboard_Close2D();
481 if (KB_MarkDirty == VirtualKeyboard_MarkDirty3D)
482 VirtualKeyboard_Close3D();
483
484 Event_Unregister_(&ControllerEvents.AxisUpdate, NULL, VirtualKeyboard_PadAxis);
485 PointerHooks.DownHook = NULL;
486 PointerHooks.MoveHook = NULL;
487 PointerHooks.UpHook = NULL;
488 Window_Main.SoftKeyboardFocus = false;
489
490 KB_MarkDirty = NULL;
491 kb_needsHook = false;
492 Input.DownHook = NULL;
493
494 DisplayInfo.ShowingSoftKeyboard = false;
495}

Callers 15

VirtualKeyboard_OpenFunction · 0.85
OnscreenKeyboard_CloseFunction · 0.85
OnscreenKeyboard_CloseFunction · 0.85
OnscreenKeyboard_CloseFunction · 0.85
OnscreenKeyboard_CloseFunction · 0.85
OnscreenKeyboard_CloseFunction · 0.85
OnscreenKeyboard_CloseFunction · 0.85
OnscreenKeyboard_CloseFunction · 0.85
OnscreenKeyboard_CloseFunction · 0.85
OnscreenKeyboard_CloseFunction · 0.85
OnscreenKeyboard_CloseFunction · 0.85

Calls 2

VirtualKeyboard_Close2DFunction · 0.85
VirtualKeyboard_Close3DFunction · 0.85

Tested by

no test coverage detected