| 688 | } |
| 689 | |
| 690 | LRESULT clickAt(WINDOW_HANDLE handle, long x, long y, long button) |
| 691 | { |
| 692 | if (!handle) { |
| 693 | LOG(WARN) << "Window handle is invalid"; |
| 694 | return ENULLPOINTER; |
| 695 | } |
| 696 | |
| 697 | HWND directInputTo = (HWND) handle; |
| 698 | |
| 699 | LRESULT result = mouseDownAt(handle, x, y, button); |
| 700 | if (result != 0) { |
| 701 | LOG(WARN) << "Mouse down did not succeed whilst clicking"; |
| 702 | return result; |
| 703 | } |
| 704 | |
| 705 | return mouseUpAt(handle, x, y, button); |
| 706 | } |
| 707 | |
| 708 | static LRESULT mouseDoubleClickDown(WINDOW_HANDLE directInputTo, long x, long y) |
| 709 | { |
no test coverage detected