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

Method injectKeyPress

Tools/LayoutEditor/Application.cpp:241–248  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

239
240
241 void Application::injectKeyPress(MyGUI::KeyCode _key, MyGUI::Char _text)
242 {
243 MyGUI::InputManager& input = MyGUI::InputManager::getInstance();
244
245 bool controlPressed = input.isControlPressed() || input.isMetaPressed();
246 if (!HotKeyManager::getInstance().onKeyEvent(true, input.isShiftPressed(), controlPressed, _key))
247 input.injectKeyPress(_key, _text);
248 }
249
250 void Application::injectKeyRelease(MyGUI::KeyCode _key)
251 {

Callers

nothing calls this directly

Calls 4

isControlPressedMethod · 0.80
isMetaPressedMethod · 0.80
onKeyEventMethod · 0.80
isShiftPressedMethod · 0.80

Tested by

no test coverage detected