Joystick messages coordinates are unsigned, treat them as such.

Apparently the joystick messages (x, y) coordinates are unsigned, so use
LOWORD/HIWORD to extract them from LPARAM.

See #748.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70278 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2012-01-07 15:09:24 +00:00
parent 4e63bfb9b3
commit f9aa52355e

View File

@ -3023,8 +3023,8 @@ wxWindowMSW::MSWHandleMessage(WXLRESULT *result,
case MM_JOY1BUTTONUP:
case MM_JOY2BUTTONUP:
processed = HandleJoystickEvent(message,
GET_X_LPARAM(lParam),
GET_Y_LPARAM(lParam),
LOWORD(lParam),
HIWORD(lParam),
wParam);
break;
#endif // __WXMICROWIN__