| 1770 | } |
| 1771 | |
| 1772 | void ImGuiIO::ClearInputMouse() |
| 1773 | { |
| 1774 | for (ImGuiKey key = ImGuiKey_Mouse_BEGIN; key < ImGuiKey_Mouse_END; key = (ImGuiKey)(key + 1)) |
| 1775 | { |
| 1776 | ImGuiKeyData* key_data = &KeysData[key - ImGuiKey_NamedKey_BEGIN]; |
| 1777 | key_data->Down = false; |
| 1778 | key_data->DownDuration = -1.0f; |
| 1779 | key_data->DownDurationPrev = -1.0f; |
| 1780 | } |
| 1781 | MousePos = ImVec2(-FLT_MAX, -FLT_MAX); |
| 1782 | for (int n = 0; n < IM_COUNTOF(MouseDown); n++) |
| 1783 | { |
| 1784 | MouseDown[n] = false; |
| 1785 | MouseDownDuration[n] = MouseDownDurationPrev[n] = -1.0f; |
| 1786 | } |
| 1787 | MouseWheel = MouseWheelH = 0.0f; |
| 1788 | } |
| 1789 | |
| 1790 | static ImGuiInputEvent* FindLatestInputEvent(ImGuiContext* ctx, ImGuiInputEventType type, int arg = -1) |
| 1791 | { |
no test coverage detected