| 1856 | } |
| 1857 | |
| 1858 | void ImGuiIO::AddKeyEvent(ImGuiKey key, bool down) |
| 1859 | { |
| 1860 | if (!AppAcceptingEvents) |
| 1861 | return; |
| 1862 | AddKeyAnalogEvent(key, down, down ? 1.0f : 0.0f); |
| 1863 | } |
| 1864 | |
| 1865 | // [Optional] Call after AddKeyEvent(). |
| 1866 | // Specify native keycode, scancode + Specify index for legacy <1.87 IsKeyXXX() functions with native indices. |
no outgoing calls
no test coverage detected