| 153 | }; |
| 154 | |
| 155 | static 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 | |
| 168 | static int last_buttons; |
| 169 | static int mouse_raw_delta, mouse_is_tablet; |
no test coverage detected