| 28 | int actions = 0; |
| 29 | |
| 30 | void 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 | |
| 39 | int main() { |
| 40 | // Setup g_window |