aboutsummaryrefslogtreecommitdiff
path: root/system
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-05-10 17:03:26 -0700
committerAlon Zakai <alonzakai@gmail.com>2012-05-10 17:03:26 -0700
commit27379196d5710f73445eeb1e2d1dbaacdabd1c4c (patch)
tree98c6208d37339aee7bc38e735dace23edf0dadf8 /system
parent4ab8ed773d9082e4e7aa17b47e5bc7b38e5abe23 (diff)
emscripten_hide_mouse
Diffstat (limited to 'system')
-rw-r--r--system/include/emscripten.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/system/include/emscripten.h b/system/include/emscripten.h
index fdccfe82..a4f15868 100644
--- a/system/include/emscripten.h
+++ b/system/include/emscripten.h
@@ -57,6 +57,14 @@ void emscripten_async_call(void (*func)(), int millis) {
#endif
/*
+ * Hide the OS mouse cursor over the canvas. Note that SDL's
+ * SDL_ShowCursor command shows and hides the SDL cursor, not
+ * the OS one. This command is useful to hide the OS cursor
+ * if your app draws its own cursor.
+ */
+void emscripten_hide_mouse();
+
+/*
* This macro-looking function will cause Emscripten to
* generate a comment in the generated code.
* XXX This is deprecated for now, because it requires us to