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++) {