| 1590 | } |
| 1591 | |
| 1592 | void ImGuiIO::AddKeyEvent(ImGuiKey key, bool down) |
| 1593 | { |
| 1594 | if (!AppAcceptingEvents) |
| 1595 | return; |
| 1596 | AddKeyAnalogEvent(key, down, down ? 1.0f : 0.0f); |
| 1597 | } |
| 1598 | |
| 1599 | // [Optional] Call after AddKeyEvent(). |
| 1600 | // Specify native keycode, scancode + Specify index for legacy <1.87 IsKeyXXX() functions with native indices. |
no outgoing calls
no test coverage detected