| 205 | } |
| 206 | |
| 207 | void TextureControlLE::notifyMouseDrag(MyGUI::Widget* _sender, int _left, int _top, MyGUI::MouseButton _id) |
| 208 | { |
| 209 | mMouseLeftPressed = false; |
| 210 | |
| 211 | if (_id == MyGUI::MouseButton::Right) |
| 212 | { |
| 213 | MyGUI::IntPoint mousePoint = MyGUI::InputManager::getInstance().getMousePositionByLayer(); |
| 214 | MyGUI::IntPoint mouseOffset = mousePoint - mRightMouseClick; |
| 215 | |
| 216 | MyGUI::IntPoint offset = mViewOffset + mouseOffset; |
| 217 | mView->setViewOffset(offset); |
| 218 | } |
| 219 | else if (_id == MyGUI::MouseButton::Left) |
| 220 | { |
| 221 | onMouseDrag(getMousePosition()); |
| 222 | } |
| 223 | } |
| 224 | |
| 225 | void TextureControlLE::notifyMouseMove(MyGUI::Widget* _sender, int _left, int _top) |
| 226 | { |
nothing calls this directly
no test coverage detected