Fixed switched mouse input

internals
Unknown 6 years ago committed by Eric Mellino
parent 4c9e1579b6
commit 78b6fd6042
  1. 4
      src/ImGui.NET.SampleProgram/ImGuiController.cs

@ -356,8 +356,8 @@ namespace ImGuiNET
}
io.MouseDown[0] = leftPressed || snapshot.IsMouseDown(MouseButton.Left);
io.MouseDown[1] = middlePressed || snapshot.IsMouseDown(MouseButton.Right);
io.MouseDown[2] = rightPressed || snapshot.IsMouseDown(MouseButton.Middle);
io.MouseDown[1] = rightPressed || snapshot.IsMouseDown(MouseButton.Right);
io.MouseDown[2] = middlePressed || snapshot.IsMouseDown(MouseButton.Middle);
io.MousePos = mousePosition;
io.MouseWheel = snapshot.WheelDelta;

Loading…
Cancel
Save