| 116 | } |
| 117 | |
| 118 | void DemoKeeper::injectMousePress(int _absx, int _absy, MyGUI::MouseButton _id) |
| 119 | { |
| 120 | if (MyGUI::Gui::getInstancePtr() == nullptr) |
| 121 | return; |
| 122 | |
| 123 | if (!MyGUI::InputManager::getInstance().injectMousePress(_absx, _absy, _id)) |
| 124 | { |
| 125 | // вращаем сцену только когда не над гуем |
| 126 | if (_id == MyGUI::MouseButton::Right) |
| 127 | { |
| 128 | mRightButtonPressed = true; |
| 129 | mSaveCursorX = _absx; |
| 130 | mSaveCursorY = _absy; |
| 131 | setPointerVisible(false); |
| 132 | } |
| 133 | } |
| 134 | } |
| 135 | |
| 136 | void DemoKeeper::injectMouseRelease(int _absx, int _absy, MyGUI::MouseButton _id) |
| 137 | { |
no test coverage detected