MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/PositionBasedDynamics / _glfwInputChar

Function _glfwInputChar

extern/glfw/src/input.c:292–308  ·  view source on GitHub ↗

Notifies shared code of a Unicode codepoint input event The 'plain' parameter determines whether to emit a regular character event

Source from the content-addressed store, hash-verified

290// The 'plain' parameter determines whether to emit a regular character event
291//
292void _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//

Callers 3

processEventFunction · 0.85
inputCharFunction · 0.85
windowProcFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected