| 754 | } |
| 755 | |
| 756 | static void fillEventData(long button, bool buttonDown, UINT *message, WPARAM *wparam) |
| 757 | { |
| 758 | if(WD_CLIENT_RIGHT_MOUSE_BUTTON == button) { |
| 759 | if(buttonDown) { |
| 760 | *message = WM_RBUTTONDOWN; |
| 761 | } else { |
| 762 | *message = WM_RBUTTONUP; |
| 763 | } |
| 764 | *wparam = MK_RBUTTON; |
| 765 | } else { // middle button support is declared in json wire protocol but it is not supported |
| 766 | leftMouseButtonPressed = buttonDown; |
| 767 | if(buttonDown) { |
| 768 | *message = WM_LBUTTONDOWN; |
| 769 | } else { |
| 770 | *message = WM_LBUTTONUP; |
| 771 | } |
| 772 | *wparam = MK_LBUTTON; |
| 773 | } |
| 774 | if (shiftPressed) { |
| 775 | *wparam |= MK_SHIFT; |
| 776 | } |
| 777 | } |
| 778 | |
| 779 | LRESULT mouseDownAt(WINDOW_HANDLE directInputTo, long x, long y, long button) |
| 780 | { |
no outgoing calls
no test coverage detected