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

Method injectMouseRelease

Demos/Demo_Pointers/DemoKeeper.cpp:136–150  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

134 }
135
136 void DemoKeeper::injectMouseRelease(int _absx, int _absy, MyGUI::MouseButton _id)
137 {
138 if (MyGUI::Gui::getInstancePtr() == nullptr)
139 return;
140
141 if (_id == MyGUI::MouseButton::Right)
142 {
143 mRightButtonPressed = false;
144 setPointerVisible(true);
145 }
146
147 if (!MyGUI::InputManager::getInstance().injectMouseRelease(_absx, _absy, _id))
148 {
149 }
150 }
151
152 void DemoKeeper::injectKeyPress(MyGUI::KeyCode _key, MyGUI::Char _text)
153 {

Callers 2

InputManager.hFile · 0.45

Calls 1

getInstancePtrFunction · 0.85

Tested by

no test coverage detected