added partial mouse events for Windows, implemented clipping rect intersection, added auto value to width and height attributes

This commit is contained in:
2017-01-25 21:02:26 +00:00
parent 9a4abe8bde
commit 5ae77ee4ac
3 changed files with 90 additions and 62 deletions

View File

@@ -460,13 +460,13 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT msg, WPARAM wp, LPARAM lp)
keys[wp] = false;
break;
case WM_MOUSEMOVE:
//current->pointerMove(LOWORD(lp), HIWORD(lp));
App::I.mouse_move(LOWORD(lp), HIWORD(lp));
break;
case WM_LBUTTONDOWN:
//current->pointerDown(LOWORD(lp), HIWORD(lp));
App::I.mouse_down(0, LOWORD(lp), HIWORD(lp));
break;
case WM_LBUTTONUP:
//current->pointerUp(LOWORD(lp), HIWORD(lp));
App::I.mouse_up(0, LOWORD(lp), HIWORD(lp));
break;
}
return DefWindowProc(hWnd, msg, wp, lp);