Add mapping for media keys
authorCharlie Birks <admin@daftgames.net>
Tue, 13 Sep 2016 00:04:00 -0700
changeset 103378b18f8e41813
parent 10336 4779f884f8d2
child 10338 638ec32cfcce
Add mapping for media keys
src/video/emscripten/SDL_emscriptenevents.c
     1.1 --- a/src/video/emscripten/SDL_emscriptenevents.c	Tue Sep 13 00:03:59 2016 -0700
     1.2 +++ b/src/video/emscripten/SDL_emscriptenevents.c	Tue Sep 13 00:04:00 2016 -0700
     1.3 @@ -217,16 +217,16 @@
     1.4      /* 171 */   SDL_SCANCODE_UNKNOWN,
     1.5      /* 172 */   SDL_SCANCODE_UNKNOWN,
     1.6      /* 173 */   SDL_SCANCODE_MINUS, /*FX*/
     1.7 -    /* 174 */   SDL_SCANCODE_UNKNOWN,
     1.8 -    /* 175 */   SDL_SCANCODE_UNKNOWN,
     1.9 -    /* 176 */   SDL_SCANCODE_UNKNOWN,
    1.10 -    /* 177 */   SDL_SCANCODE_UNKNOWN,
    1.11 +    /* 174 */   SDL_SCANCODE_VOLUMEDOWN, /*IE, Chrome*/
    1.12 +    /* 175 */   SDL_SCANCODE_VOLUMEUP, /*IE, Chrome*/
    1.13 +    /* 176 */   SDL_SCANCODE_AUDIONEXT, /*IE, Chrome*/
    1.14 +    /* 177 */   SDL_SCANCODE_AUDIOPREV, /*IE, Chrome*/
    1.15      /* 178 */   SDL_SCANCODE_UNKNOWN,
    1.16 -    /* 179 */   SDL_SCANCODE_UNKNOWN,
    1.17 +    /* 179 */   SDL_SCANCODE_AUDIOPLAY, /*IE, Chrome*/
    1.18      /* 180 */   SDL_SCANCODE_UNKNOWN,
    1.19 -    /* 181 */   SDL_SCANCODE_UNKNOWN,
    1.20 -    /* 182 */   SDL_SCANCODE_UNKNOWN,
    1.21 -    /* 183 */   SDL_SCANCODE_UNKNOWN,
    1.22 +    /* 181 */   SDL_SCANCODE_AUDIOMUTE, /*FX*/
    1.23 +    /* 182 */   SDL_SCANCODE_VOLUMEDOWN, /*FX*/
    1.24 +    /* 183 */   SDL_SCANCODE_VOLUMEUP, /*FX*/
    1.25      /* 184 */   SDL_SCANCODE_UNKNOWN,
    1.26      /* 185 */   SDL_SCANCODE_UNKNOWN,
    1.27      /* 186 */   SDL_SCANCODE_SEMICOLON, /*IE, Chrome, D3E legacy*/