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