| 1816 | } |
| 1817 | |
| 1818 | void ImGuiIO::ClearInputMouse() |
| 1819 | { |
| 1820 | for (ImGuiKey key = ImGuiKey_Mouse_BEGIN; key < ImGuiKey_Mouse_END; key = (ImGuiKey)(key + 1)) |
| 1821 | { |
| 1822 | ImGuiKeyData* key_data = &KeysData[key - ImGuiKey_NamedKey_BEGIN]; |
| 1823 | key_data->Down = false; |
| 1824 | key_data->DownDuration = -1.0f; |
| 1825 | key_data->DownDurationPrev = -1.0f; |
| 1826 | } |
| 1827 | MousePos = ImVec2(-FLT_MAX, -FLT_MAX); |
| 1828 | for (int n = 0; n < IM_COUNTOF(MouseDown); n++) |
| 1829 | { |
| 1830 | MouseDown[n] = false; |
| 1831 | MouseDownDuration[n] = MouseDownDurationPrev[n] = -1.0f; |
| 1832 | } |
| 1833 | MouseWheel = MouseWheelH = 0.0f; |
| 1834 | } |
| 1835 | |
| 1836 | static ImGuiInputEvent* FindLatestInputEvent(ImGuiContext* ctx, ImGuiInputEventType type, int arg = -1) |
| 1837 | { |
no test coverage detected