Added invert mouse option.

This commit is contained in:
dexyfex
2018-01-02 11:07:24 +11:00
Unverified
parent c9fb099db7
commit 4cbf85bd03
7 changed files with 62 additions and 3 deletions
+6
View File
@@ -44,6 +44,7 @@ namespace CodeWalker.Forms
int MouseY;
System.Drawing.Point MouseDownPoint;
System.Drawing.Point MouseLastPoint;
bool MouseInvert = Settings.Default.MouseInvert;
@@ -1051,6 +1052,11 @@ namespace CodeWalker.Forms
int dx = e.X - MouseX;
int dy = e.Y - MouseY;
if (MouseInvert)
{
dy = -dy;
}
if (MouseLButtonDown)
{
camera.MouseRotate(dx, dy);