| 1464 | } |
| 1465 | |
| 1466 | void ImGuiIO::AddKeyEvent(ImGuiKey key, bool down) |
| 1467 | { |
| 1468 | if (!AppAcceptingEvents) |
| 1469 | return; |
| 1470 | AddKeyAnalogEvent(key, down, down ? 1.0f : 0.0f); |
| 1471 | } |
| 1472 | |
| 1473 | // [Optional] Call after AddKeyEvent(). |
| 1474 | // Specify native keycode, scancode + Specify index for legacy <1.87 IsKeyXXX() functions with native indices. |
no outgoing calls
no test coverage detected