[Optional] Call after AddKeyEvent(). Specify native keycode, scancode + Specify index for legacy <1.87 IsKeyXXX() functions with native indices. If you are writing a backend in 2022 or don't use IsKeyXXX() with native values that are not ImGuiKey values, you can avoid calling this.
| 1887 | // Specify native keycode, scancode + Specify index for legacy <1.87 IsKeyXXX() functions with native indices. |
| 1888 | // If you are writing a backend in 2022 or don't use IsKeyXXX() with native values that are not ImGuiKey values, you can avoid calling this. |
| 1889 | void ImGuiIO::SetKeyEventNativeData(ImGuiKey key, int native_keycode, int native_scancode, int native_legacy_index) |
| 1890 | { |
| 1891 | if (key == ImGuiKey_None) |
| 1892 | return; |
| 1893 | IM_ASSERT(ImGui::IsNamedKey(key)); // >= 512 |
| 1894 | IM_ASSERT(native_legacy_index == -1 || ImGui::IsLegacyKey((ImGuiKey)native_legacy_index)); // >= 0 && <= 511 |
| 1895 | IM_UNUSED(key); // Yet unused |
| 1896 | IM_UNUSED(native_keycode); // Yet unused |
| 1897 | IM_UNUSED(native_scancode); // Yet unused |
| 1898 | IM_UNUSED(native_legacy_index); // Yet unused |
| 1899 | } |
| 1900 | |
| 1901 | // Set master flag for accepting key/mouse/text events (default to true). Useful if you have native dialog boxes that are interrupting your application loop/refresh, and you want to disable events being queued while your app is frozen. |
| 1902 | void ImGuiIO::SetAppAcceptingEvents(bool accepting_events) |
no test coverage detected