|
|
@@ -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)
|