MCPcopy Create free account
hub / github.com/DISTRHO/Cardinal / ClearInputKeys

Method ClearInputKeys

plugins/Cardinal/src/DearImGui/imgui.cpp:1200–1209  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1198}
1199
1200void ImGuiIO::ClearInputKeys()
1201{
1202 memset(KeysDown, 0, sizeof(KeysDown));
1203 for (int n = 0; n < IM_ARRAYSIZE(KeysDownDuration); n++)
1204 KeysDownDuration[n] = KeysDownDurationPrev[n] = -1.0f;
1205 KeyCtrl = KeyShift = KeyAlt = KeySuper = false;
1206 KeyMods = KeyModsPrev = ImGuiKeyModFlags_None;
1207 for (int n = 0; n < IM_ARRAYSIZE(NavInputsDownDuration); n++)
1208 NavInputsDownDuration[n] = NavInputsDownDurationPrev[n] = -1.0f;
1209}
1210
1211void ImGuiIO::AddFocusEvent(bool focused)
1212{

Callers 1

NewFrameMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected