MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / OnMouseClick

Function OnMouseClick

test/interactive/test_glfw_pointerlock.c:30–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28int actions = 0;
29
30void OnMouseClick(GLFWwindow *window, int button, int action, int mods) {
31 actions++;
32 printf("mouse actions: %d / 4\n", actions);
33 if (actions >= 4) {
34 printf("done.\n");
35 emscripten_force_exit(0);
36 }
37}
38
39int main() {
40 // Setup g_window

Callers

nothing calls this directly

Calls 1

printfFunction · 0.85

Tested by

no test coverage detected