src/video/emscripten/SDL_emscriptenevents.c
changeset 9601 4c65108b7ac3
parent 9591 ebc2a308211b
child 9619 b94b6d0bff0f
equal deleted inserted replaced
9600:d52c2129c9ac 9601:4c65108b7ac3
    36 #include "SDL_hints.h"
    36 #include "SDL_hints.h"
    37 
    37 
    38 #define FULLSCREEN_MASK ( SDL_WINDOW_FULLSCREEN_DESKTOP | SDL_WINDOW_FULLSCREEN )
    38 #define FULLSCREEN_MASK ( SDL_WINDOW_FULLSCREEN_DESKTOP | SDL_WINDOW_FULLSCREEN )
    39 
    39 
    40 /*
    40 /*
    41 .which to scancode
    41 .keyCode to scancode
    42 https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent#Constants
    42 https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent
       
    43 https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/keyCode
    43 */
    44 */
    44 static const SDL_Scancode emscripten_scancode_table[] = {
    45 static const SDL_Scancode emscripten_scancode_table[] = {
    45     /*  0 */    SDL_SCANCODE_UNKNOWN,
    46     /*  0 */    SDL_SCANCODE_UNKNOWN,
    46     /*  1 */    SDL_SCANCODE_UNKNOWN,
    47     /*  1 */    SDL_SCANCODE_UNKNOWN,
    47     /*  2 */    SDL_SCANCODE_UNKNOWN,
    48     /*  2 */    SDL_SCANCODE_UNKNOWN,