Added middle mouse button handling.
This commit is contained in:
parent
f6def56675
commit
a6697b4639
|
@ -156,6 +156,16 @@ LRESULT WINAPI MainProc( HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam)
|
||||||
TestBoard( hWnd, &board, LOWORD(lParam), HIWORD(lParam), msg );
|
TestBoard( hWnd, &board, LOWORD(lParam), HIWORD(lParam), msg );
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
case WM_MBUTTONDOWN:
|
||||||
|
DEBUG("WM_MBUTTONDOWN\n");
|
||||||
|
TestBoard( hWnd, &board, LOWORD(lParam), HIWORD(lParam), msg );
|
||||||
|
return 0;
|
||||||
|
|
||||||
|
case WM_MBUTTONUP:
|
||||||
|
DEBUG("WM_MBUTTONUP\n");
|
||||||
|
TestBoard( hWnd, &board, LOWORD(lParam), HIWORD(lParam), msg );
|
||||||
|
return 0;
|
||||||
|
|
||||||
case WM_MOUSEMOVE:
|
case WM_MOUSEMOVE:
|
||||||
{
|
{
|
||||||
if( (wParam & MK_LBUTTON) && (wParam & MK_RBUTTON) ) {
|
if( (wParam & MK_LBUTTON) && (wParam & MK_RBUTTON) ) {
|
||||||
|
|
Loading…
Reference in New Issue