Browse Source

Fixed Linux mouse wheel scroll.

seanpaultaylor 12 years ago
parent
commit
b295c973ac
1 changed files with 5 additions and 6 deletions
  1. 5 6
      gameplay/src/PlatformLinux.cpp

+ 5 - 6
gameplay/src/PlatformLinux.cpp

@@ -1240,13 +1240,13 @@ int Platform::enterMessagePump()
                                 break;
                             case 4:
                             case 5:
-				int wheelDelta;
-				if (evt.xbutton.button == Button4)
-				    wheelDelta = 1;
+                                int wheelDelta;
+                                if (evt.xbutton.button == Button4)
+                                    wheelDelta = 1;
                                 else if (evt.xbutton.button == Button5)
                                     wheelDelta = -1;
-				else
-				    wheelDelta = 0;
+                                else
+                                    wheelDelta = 0;
                                 gameplay::Platform::mouseEventInternal(gameplay::Mouse::MOUSE_WHEEL, evt.xbutton.x, evt.xbutton.y, wheelDelta);
                                 break;
                             default:
@@ -1287,7 +1287,6 @@ int Platform::enterMessagePump()
                     {
                         int x = evt.xmotion.x;
                         int y = evt.xmotion.y;
-
                         if (__mouseCaptured)
                         {
                             if (x == __mouseCapturePointX && y == __mouseCapturePointY)