[Commits] SDL: emscripten: Fixed not removing pointer lock event callback.

libsdl.org revision control commits-owner at libsdl.org
Sat May 13 14:07:50 PDT 2017


details:   https://hg.libsdl.org/SDL/rev/ced20e690a19
changeset: 11003:ced20e690a19
user:      Philipp Wiesemann <philipp.wiesemann at arcor.de>
date:      Sat May 13 23:00:35 2017 +0200
description:
emscripten: Fixed not removing pointer lock event callback.

diffstat:

 src/video/emscripten/SDL_emscriptenevents.c |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (20 lines):

diff -r ba0ce5b958d2 -r ced20e690a19 src/video/emscripten/SDL_emscriptenevents.c
--- a/src/video/emscripten/SDL_emscriptenevents.c	Fri May 12 23:01:17 2017 +0200
+++ b/src/video/emscripten/SDL_emscriptenevents.c	Sat May 13 23:00:35 2017 +0200
@@ -676,6 +676,8 @@
     emscripten_set_touchmove_callback("#canvas", NULL, 0, NULL);
     emscripten_set_touchcancel_callback("#canvas", NULL, 0, NULL);
 
+    emscripten_set_pointerlockchange_callback(NULL, NULL, 0, NULL);
+
     const char *target = SDL_GetHint(SDL_HINT_EMSCRIPTEN_KEYBOARD_ELEMENT);
     if (!target) {
         target = "#window";
@@ -683,7 +685,6 @@
 
     emscripten_set_keydown_callback(target, NULL, 0, NULL);
     emscripten_set_keyup_callback(target, NULL, 0, NULL);
-
     emscripten_set_keypress_callback(target, NULL, 0, NULL);
 
     emscripten_set_fullscreenchange_callback("#document", NULL, 0, NULL);


More information about the commits mailing list