src/video/emscripten/SDL_emscriptenevents.c
changeset 11003 ced20e690a19
parent 11002 ba0ce5b958d2
child 11024 32026cc5015a
equal deleted inserted replaced
11002:ba0ce5b958d2 11003:ced20e690a19
   674     emscripten_set_touchstart_callback("#canvas", NULL, 0, NULL);
   674     emscripten_set_touchstart_callback("#canvas", NULL, 0, NULL);
   675     emscripten_set_touchend_callback("#canvas", NULL, 0, NULL);
   675     emscripten_set_touchend_callback("#canvas", NULL, 0, NULL);
   676     emscripten_set_touchmove_callback("#canvas", NULL, 0, NULL);
   676     emscripten_set_touchmove_callback("#canvas", NULL, 0, NULL);
   677     emscripten_set_touchcancel_callback("#canvas", NULL, 0, NULL);
   677     emscripten_set_touchcancel_callback("#canvas", NULL, 0, NULL);
   678 
   678 
       
   679     emscripten_set_pointerlockchange_callback(NULL, NULL, 0, NULL);
       
   680 
   679     const char *target = SDL_GetHint(SDL_HINT_EMSCRIPTEN_KEYBOARD_ELEMENT);
   681     const char *target = SDL_GetHint(SDL_HINT_EMSCRIPTEN_KEYBOARD_ELEMENT);
   680     if (!target) {
   682     if (!target) {
   681         target = "#window";
   683         target = "#window";
   682     }
   684     }
   683 
   685 
   684     emscripten_set_keydown_callback(target, NULL, 0, NULL);
   686     emscripten_set_keydown_callback(target, NULL, 0, NULL);
   685     emscripten_set_keyup_callback(target, NULL, 0, NULL);
   687     emscripten_set_keyup_callback(target, NULL, 0, NULL);
   686 
       
   687     emscripten_set_keypress_callback(target, NULL, 0, NULL);
   688     emscripten_set_keypress_callback(target, NULL, 0, NULL);
   688 
   689 
   689     emscripten_set_fullscreenchange_callback("#document", NULL, 0, NULL);
   690     emscripten_set_fullscreenchange_callback("#document", NULL, 0, NULL);
   690 
   691 
   691     emscripten_set_resize_callback("#window", NULL, 0, NULL);
   692     emscripten_set_resize_callback("#window", NULL, 0, NULL);