MCPcopy Create free account
hub / github.com/defold/defold / GetKeyboardPacket

Function GetKeyboardPacket

engine/hid/src/hid.cpp:157–168  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

155 }
156
157 bool GetKeyboardPacket(HKeyboard keyboard, KeyboardPacket* out_packet)
158 {
159 if (out_packet != 0x0 && keyboard != 0x0 && keyboard->m_Connected)
160 {
161 *out_packet = keyboard->m_Packet;
162 return true;
163 }
164 else
165 {
166 return false;
167 }
168 }
169
170 bool GetTextPacket(HContext context, TextPacket* out_packet)
171 {

Callers 5

StepFrameFunction · 0.85
TEST_FFunction · 0.85
EngineUpdateFunction · 0.85
RunFunction · 0.85
UpdateBindingFunction · 0.85

Calls

no outgoing calls

Tested by 3

TEST_FFunction · 0.68
EngineUpdateFunction · 0.68
RunFunction · 0.68