| 158 | } |
| 159 | |
| 160 | void DemoKeeper::injectMousePress(int _absx, int _absy, MyGUI::MouseButton _id) |
| 161 | { |
| 162 | if (MyGUI::Gui::getInstancePtr() == nullptr) |
| 163 | return; |
| 164 | |
| 165 | if (!MyGUI::InputManager::getInstance().injectMousePress(_absx, _absy, _id)) |
| 166 | { |
| 167 | // вращаем сцену только когда не над гуем |
| 168 | if (_id == MyGUI::MouseButton::Right) |
| 169 | { |
| 170 | mRightButtonPressed = true; |
| 171 | mSaveCursorX = _absx; |
| 172 | mSaveCursorY = _absy; |
| 173 | setPointerVisible(false); |
| 174 | } |
| 175 | } |
| 176 | } |
| 177 | |
| 178 | void DemoKeeper::injectMouseRelease(int _absx, int _absy, MyGUI::MouseButton _id) |
| 179 | { |
no test coverage detected