------------------------------------------------------------------
| 1094 | |
| 1095 | //------------------------------------------------------------------ |
| 1096 | void vtkRenderWindowInteractor::LeftButtonPressEvent() |
| 1097 | { |
| 1098 | if (!this->Enabled) |
| 1099 | { |
| 1100 | return; |
| 1101 | } |
| 1102 | |
| 1103 | // are we translating multitouch into gestures? |
| 1104 | if (this->RecognizeGestures) |
| 1105 | { |
| 1106 | if (!this->PointersDown[this->PointerIndex]) |
| 1107 | { |
| 1108 | this->PointersDown[this->PointerIndex] = 1; |
| 1109 | this->PointersDownCount++; |
| 1110 | } |
| 1111 | // do we have multitouch |
| 1112 | if (this->PointersDownCount > 1) |
| 1113 | { |
| 1114 | // did we just transition to multitouch? |
| 1115 | if (this->PointersDownCount == 2) |
| 1116 | { |
| 1117 | this->InvokeEvent(vtkCommand::LeftButtonReleaseEvent, nullptr); |
| 1118 | } |
| 1119 | // handle the gesture |
| 1120 | this->RecognizeGesture(vtkCommand::LeftButtonPressEvent); |
| 1121 | return; |
| 1122 | } |
| 1123 | } |
| 1124 | |
| 1125 | this->InvokeEvent(vtkCommand::LeftButtonPressEvent, nullptr); |
| 1126 | } |
| 1127 | |
| 1128 | //------------------------------------------------------------------ |
| 1129 | void vtkRenderWindowInteractor::LeftButtonReleaseEvent() |
no test coverage detected