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:
parent
4e63bfb9b3
commit
f9aa52355e
@ -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__
|
||||
|
Loading…
Reference in New Issue
Block a user