| 1721 | } |
| 1722 | |
| 1723 | void ImGuiIO::AddKeyEvent(ImGuiKey key, bool down) |
| 1724 | { |
| 1725 | if (!AppAcceptingEvents) |
| 1726 | return; |
| 1727 | AddKeyAnalogEvent(key, down, down ? 1.0f : 0.0f); |
| 1728 | } |
| 1729 | |
| 1730 | // [Optional] Call after AddKeyEvent(). |
| 1731 | // Specify native keycode, scancode + Specify index for legacy <1.87 IsKeyXXX() functions with native indices. |
no outgoing calls
no test coverage detected