| 1489 | } |
| 1490 | |
| 1491 | void ImGuiIO::ClearInputMouse() |
| 1492 | { |
| 1493 | for (ImGuiKey key = ImGuiKey_Mouse_BEGIN; key < ImGuiKey_Mouse_END; key = (ImGuiKey)(key + 1)) |
| 1494 | { |
| 1495 | ImGuiKeyData* key_data = &KeysData[key - ImGuiKey_KeysData_OFFSET]; |
| 1496 | key_data->Down = false; |
| 1497 | key_data->DownDuration = -1.0f; |
| 1498 | key_data->DownDurationPrev = -1.0f; |
| 1499 | } |
| 1500 | MousePos = ImVec2(-FLT_MAX, -FLT_MAX); |
| 1501 | for (int n = 0; n < IM_ARRAYSIZE(MouseDown); n++) |
| 1502 | { |
| 1503 | MouseDown[n] = false; |
| 1504 | MouseDownDuration[n] = MouseDownDurationPrev[n] = -1.0f; |
| 1505 | } |
| 1506 | MouseWheel = MouseWheelH = 0.0f; |
| 1507 | } |
| 1508 | |
| 1509 | // Removed this as it is ambiguous/misleading and generally incorrect to use with the existence of a higher-level input queue. |
| 1510 | // Current frame character buffer is now also cleared by ClearInputKeys(). |
no test coverage detected