MCPcopy Create free account
hub / github.com/ClassiCube/ClassiCube / ProcessKeyInput

Function ProcessKeyInput

src/Window_BeOS.cpp:155–166  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

153};
154
155static void ProcessKeyInput(BMessage* msg) {
156 CCEvent event;
157 const char* value;
158 cc_codepoint cp;
159
160 if (msg->FindString("bytes", &value) != B_OK) return;
161 if (!Convert_Utf8ToCodepoint(&cp, (const cc_uint8*)value, String_Length(value))) return;
162
163 event.type = CC_KEY_INPUT;
164 event.v1.i32 = cp;
165 Events_Push(&event);
166}
167
168static int last_buttons;
169static int mouse_raw_delta, mouse_is_tablet;

Callers 1

DispatchMessageMethod · 0.85

Calls 3

Convert_Utf8ToCodepointFunction · 0.85
String_LengthFunction · 0.85
Events_PushFunction · 0.70

Tested by

no test coverage detected