------------------------------------------------------------------------------
| 673 | |
| 674 | //------------------------------------------------------------------------------ |
| 675 | int vtkWin32RenderWindowInteractor::OnLButtonDown(HWND wnd, UINT nFlags, int X, int Y, int repeat) |
| 676 | { |
| 677 | if (!this->Enabled) |
| 678 | { |
| 679 | return 0; |
| 680 | } |
| 681 | |
| 682 | // touch events handled by WM_TOUCH |
| 683 | if ((GetMessageExtraInfo() & MOUSEEVENTF_FROMTOUCH) == MOUSEEVENTF_FROMTOUCH) |
| 684 | { |
| 685 | return 0; |
| 686 | } |
| 687 | |
| 688 | SetFocus(wnd); |
| 689 | SetCapture(wnd); |
| 690 | this->SetEventInformationFlipY(X, Y, nFlags & MK_CONTROL, nFlags & MK_SHIFT, 0, repeat); |
| 691 | this->SetAltKey((GetKeyState(VK_MENU) & 0x8000) != 0); |
| 692 | return this->InvokeEvent(vtkCommand::LeftButtonPressEvent, nullptr); |
| 693 | } |
| 694 | |
| 695 | //------------------------------------------------------------------------------ |
| 696 | int vtkWin32RenderWindowInteractor::OnLButtonUp(HWND, UINT nFlags, int X, int Y) |
no test coverage detected