From 4dee11a089412a4ead7c84b0832b47a8ea5e2008 Mon Sep 17 00:00:00 2001 From: ocornut Date: Wed, 13 Aug 2025 17:01:57 +0200 Subject: [PATCH] Make ImGuiInputSource int. (primarily to avoid "result of comparison 'ImGuiInputSource' < 0 is always false" in GetInputSourceName(). --- imgui_internal.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imgui_internal.h b/imgui_internal.h index dd2049569..ec6be29d8 100644 --- a/imgui_internal.h +++ b/imgui_internal.h @@ -1487,7 +1487,7 @@ enum ImGuiInputEventType ImGuiInputEventType_COUNT }; -enum ImGuiInputSource +enum ImGuiInputSource : int { ImGuiInputSource_None = 0, ImGuiInputSource_Mouse, // Note: may be Mouse or TouchScreen or Pen. See io.MouseSource to distinguish them.