From 4050b768bb2f4c1ecb0965e221abefd036c41841 Mon Sep 17 00:00:00 2001 From: Eric Mellino Date: Thu, 25 Oct 2018 21:06:46 -0700 Subject: [PATCH] Very minor code cleanup in ImGuiController. --- src/ImGui.NET.SampleProgram/ImGuiController.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/ImGui.NET.SampleProgram/ImGuiController.cs b/src/ImGui.NET.SampleProgram/ImGuiController.cs index acd2189..467b4c4 100644 --- a/src/ImGui.NET.SampleProgram/ImGuiController.cs +++ b/src/ImGui.NET.SampleProgram/ImGuiController.cs @@ -328,7 +328,7 @@ namespace ImGuiNET private void UpdateImGuiInput(InputSnapshot snapshot) { - var io = ImGui.GetIO(); + ImGuiIOPtr io = ImGui.GetIO(); Vector2 mousePosition = snapshot.MousePosition; @@ -340,8 +340,6 @@ namespace ImGuiNET float delta = snapshot.WheelDelta; io.MouseWheel = delta; - io.MouseWheel = delta; - IReadOnlyList keyCharPresses = snapshot.KeyCharPresses; for (int i = 0; i < keyCharPresses.Count; i++) {