aboutsummaryrefslogtreecommitdiffstatsci
diff options
context:
space:
mode:
authorj-p <jp_bruyere@hotmail.com>2021-09-28 16:27:01 +0200
committerj-p <jp_bruyere@hotmail.com>2021-09-28 16:27:01 +0200
commit2a588d5d146e7cb6ce14fef5f151fbb0b19d5f3d (patch)
tree81897753d5cdbb00ec8c0d1ceed1bbf8d49bc274
parent9aec3f89e7239eded3fd18b5428947143463b213 (diff)
windows cairo dll name, use right button for view rotation
-rw-r--r--src/VkChess.cs6
1 files 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;