MCPcopy Create free account
hub / github.com/GRAnimated/MinecraftLCE / dispatchKeyboardEvent

Method dispatchKeyboardEvent

src/4JLibraries_Source/fui/fui.cpp:98–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96}
97
98void fui::dispatchKeyboardEvent(fuiFile* file, bool state, int c) {
99 FJ_FuiNode* node = file->m_data.m_fuiSymbol->m_stage; // ???
100
101 if (FJ_FuiNode* focus = static_cast<FJ_FuiNodeStage*>(node)->getFocus())
102 node = focus;
103
104 node->dispatchEvent(new FJ_KeyboardEvent(state, c, true, false));
105}
106
107// param names guessed
108void fui::dispatchMouseMoveEvent(fuiFile* file, float x, float y) {

Callers 1

sendInputToMovieMethod · 0.80

Calls 1

getFocusMethod · 0.80

Tested by

no test coverage detected