From 2a588d5d146e7cb6ce14fef5f151fbb0b19d5f3d Mon Sep 17 00:00:00 2001 From: j-p Date: Tue, 28 Sep 2021 16:27:01 +0200 Subject: windows cairo dll name, use right button for view rotation --- src/VkChess.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/VkChess.cs b/src/VkChess.cs index cfc1d9d..0aeab0f 100644 --- a/src/VkChess.cs +++ b/src/VkChess.cs @@ -28,8 +28,10 @@ namespace vkChess switch (libraryName) { + case "cairo": + return System.Runtime.InteropServices.NativeLibrary.Load("cairo-2", assembly, null); case "glfw3": - return System.Runtime.InteropServices.NativeLibrary.Load("glfw", assembly, null); + return System.Runtime.InteropServices.NativeLibrary.Load("glfw", assembly, null); case "rsvg-2.40": return System.Runtime.InteropServices.NativeLibrary.Load("rsvg-2", assembly, null); } @@ -465,7 +467,7 @@ namespace vkChess double diffX = lastMouseX - xPos; double diffY = lastMouseY - yPos; - if (GetButton (MouseButton.Middle) == InputAction.Press) { + if (GetButton (MouseButton.Right) == InputAction.Press) { camera.Rotate ((float)-diffY, (float)-diffX); CameraRotation = camera.Rotation; return; -- cgit v1.3.1-4-g156e