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

Method injectMousePress

Demos/Demo_Pointers/DemoKeeper.cpp:118–134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers 2

InputManager.hFile · 0.45

Calls 1

getInstancePtrFunction · 0.85

Tested by

no test coverage detected