MCPcopy Create free account
hub / github.com/KebsCS/KBotExt / ImGui_ImplWin32_AddKeyEvent

Function ImGui_ImplWin32_AddKeyEvent

KBotExt/imgui/imgui_impl_win32.cpp:237–243  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

235}
236
237static void ImGui_ImplWin32_AddKeyEvent(ImGuiKey key, bool down, int native_keycode, int native_scancode = -1)
238{
239 ImGuiIO& io = ImGui::GetIO();
240 io.AddKeyEvent(key, down);
241 io.SetKeyEventNativeData(key, native_keycode, native_scancode); // To support legacy indexing (<1.87 user code)
242 IM_UNUSED(native_scancode);
243}
244
245static void ImGui_ImplWin32_ProcessKeyEventsWorkarounds()
246{

Calls 2

AddKeyEventMethod · 0.80
SetKeyEventNativeDataMethod · 0.80

Tested by

no test coverage detected