瀏覽代碼

Make ImGuiInputSource int.

(primarily to avoid "result of comparison 'ImGuiInputSource' < 0 is always false" in GetInputSourceName().
ocornut 3 周之前
父節點
當前提交
4dee11a089
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      imgui_internal.h

+ 1 - 1
imgui_internal.h

@@ -1487,7 +1487,7 @@ enum ImGuiInputEventType
     ImGuiInputEventType_COUNT
     ImGuiInputEventType_COUNT
 };
 };
 
 
-enum ImGuiInputSource
+enum ImGuiInputSource : int
 {
 {
     ImGuiInputSource_None = 0,
     ImGuiInputSource_None = 0,
     ImGuiInputSource_Mouse,         // Note: may be Mouse or TouchScreen or Pen. See io.MouseSource to distinguish them.
     ImGuiInputSource_Mouse,         // Note: may be Mouse or TouchScreen or Pen. See io.MouseSource to distinguish them.