Win32: Don't process extra mouse buttons messages (related to issue #483)

This commit is contained in:
David Capello 2014-09-11 00:02:33 -03:00
parent fda9478eb4
commit ee685e419e
2 changed files with 4 additions and 4 deletions

View File

@ -346,6 +346,7 @@ static LRESULT CALLBACK directx_wnd_proc(HWND wnd, UINT message, WPARAM wparam,
}
break;
#if 0 /* We don't support extra mouse buttons */
case WM_XBUTTONDOWN:
case WM_XBUTTONUP:
if (win_gfx_driver && _mouse_installed) {
@ -360,6 +361,7 @@ static LRESULT CALLBACK directx_wnd_proc(HWND wnd, UINT message, WPARAM wparam,
return TRUE;
}
break;
#endif
case WM_MOUSEWHEEL:
if (win_gfx_driver && _mouse_installed) {

View File

@ -213,8 +213,7 @@ static LRESULT CALLBACK wndproc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lpara
case WM_LBUTTONDOWN:
case WM_RBUTTONDOWN:
case WM_MBUTTONDOWN:
case WM_XBUTTONDOWN: {
case WM_MBUTTONDOWN: {
Event ev;
ev.setType(Event::MouseDown);
ev.setPosition(gfx::Point(
@ -230,8 +229,7 @@ static LRESULT CALLBACK wndproc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lpara
case WM_LBUTTONUP:
case WM_RBUTTONUP:
case WM_MBUTTONUP:
case WM_XBUTTONUP: {
case WM_MBUTTONUP: {
Event ev;
ev.setType(Event::MouseUp);
ev.setPosition(gfx::Point(