From 78b6fd6042b269ed095faa935a55de4610dbe2a8 Mon Sep 17 00:00:00 2001 From: Unknown Date: Thu, 3 Jan 2019 10:47:08 +0100 Subject: [PATCH] Fixed switched mouse input --- src/ImGui.NET.SampleProgram/ImGuiController.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ImGui.NET.SampleProgram/ImGuiController.cs b/src/ImGui.NET.SampleProgram/ImGuiController.cs index 363ee32..64d6ef9 100644 --- a/src/ImGui.NET.SampleProgram/ImGuiController.cs +++ b/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;