| 1375 | } |
| 1376 | |
| 1377 | void ImGuiIO::AddKeyEvent(ImGuiKey key, bool down) |
| 1378 | { |
| 1379 | if (!AppAcceptingEvents) |
| 1380 | return; |
| 1381 | AddKeyAnalogEvent(key, down, down ? 1.0f : 0.0f); |
| 1382 | } |
| 1383 | |
| 1384 | // [Optional] Call after AddKeyEvent(). |
| 1385 | // Specify native keycode, scancode + Specify index for legacy <1.87 IsKeyXXX() functions with native indices. |
no outgoing calls
no test coverage detected