MCPcopy Create free account
hub / github.com/MyGUI/mygui / injectMousePress

Method injectMousePress

UnitTests/UnitTest_Layers/DemoKeeper.cpp:160–176  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers 1

notifyFrameStartedMethod · 0.45

Calls 1

getInstancePtrFunction · 0.85

Tested by

no test coverage detected