| 235 | } |
| 236 | |
| 237 | static 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 | |
| 245 | static void ImGui_ImplWin32_ProcessKeyEventsWorkarounds() |
| 246 | { |
no test coverage detected