| 1416 | } |
| 1417 | |
| 1418 | void ImGuiIO::AddKeyEvent(ImGuiKey key, bool down) |
| 1419 | { |
| 1420 | if (!AppAcceptingEvents) |
| 1421 | return; |
| 1422 | AddKeyAnalogEvent(key, down, down ? 1.0f : 0.0f); |
| 1423 | } |
| 1424 | |
| 1425 | // [Optional] Call after AddKeyEvent(). |
| 1426 | // Specify native keycode, scancode + Specify index for legacy <1.87 IsKeyXXX() functions with native indices. |
no outgoing calls
no test coverage detected