Notifies shared code of a Unicode codepoint input event The 'plain' parameter determines whether to emit a regular character event
| 290 | // The 'plain' parameter determines whether to emit a regular character event |
| 291 | // |
| 292 | void _glfwInputChar(_GLFWwindow* window, unsigned int codepoint, int mods, GLFWbool plain) |
| 293 | { |
| 294 | if (codepoint < 32 || (codepoint > 126 && codepoint < 160)) |
| 295 | return; |
| 296 | |
| 297 | if (!window->lockKeyMods) |
| 298 | mods &= ~(GLFW_MOD_CAPS_LOCK | GLFW_MOD_NUM_LOCK); |
| 299 | |
| 300 | if (window->callbacks.charmods) |
| 301 | window->callbacks.charmods((GLFWwindow*) window, codepoint, mods); |
| 302 | |
| 303 | if (plain) |
| 304 | { |
| 305 | if (window->callbacks.character) |
| 306 | window->callbacks.character((GLFWwindow*) window, codepoint); |
| 307 | } |
| 308 | } |
| 309 | |
| 310 | // Notifies shared code of a scroll event |
| 311 | // |
no outgoing calls
no test coverage detected