| 161 | } |
| 162 | |
| 163 | void TextureControlLE::notifyMouseButtonPressed(MyGUI::Widget* _sender, int _left, int _top, MyGUI::MouseButton _id) |
| 164 | { |
| 165 | if (_id == MyGUI::MouseButton::Right) |
| 166 | { |
| 167 | mMouseCapture = true; |
| 168 | mRightMouseClick = MyGUI::InputManager::getInstance().getMousePositionByLayer(); |
| 169 | mViewOffset = mView->getViewOffset(); |
| 170 | |
| 171 | mTexture->setPointer("hand"); |
| 172 | MyGUI::PointerManager::getInstance().setPointer("hand"); |
| 173 | MyGUI::PointerManager::getInstance().eventChangeMousePointer("hand"); |
| 174 | } |
| 175 | else if (_id == MyGUI::MouseButton::Left) |
| 176 | { |
| 177 | mMouseLeftPressed = true; |
| 178 | onMouseButtonPressed(getMousePosition()); |
| 179 | } |
| 180 | } |
| 181 | |
| 182 | void TextureControlLE::notifyMouseButtonReleased( |
| 183 | MyGUI::Widget* _sender, |
nothing calls this directly
no test coverage detected