riscos: Support Windows and Menu key input SDL-1.2
authorCameron Cawley
Fri, 17 Aug 2018 23:21:56 +0100
branchSDL-1.2
changeset 12773496c64c1d9c3
parent 12772 8546f12c2834
child 12774 5b49f9ec7036
riscos: Support Windows and Menu key input
src/video/riscos/SDL_riscosevents.c
     1.1 --- a/src/video/riscos/SDL_riscosevents.c	Fri Aug 17 20:52:34 2018 +0100
     1.2 +++ b/src/video/riscos/SDL_riscosevents.c	Fri Aug 17 23:21:56 2018 +0100
     1.3 @@ -63,10 +63,10 @@
     1.4  #define ROKEY_NONE 255
     1.5  
     1.6  /* Id of last key in keyboard */
     1.7 -#define ROKEY_LAST_KEY  124
     1.8 +#define ROKEY_LAST_KEY  127
     1.9  
    1.10  /* Size of array for all keys */
    1.11 -#define ROKEYBD_ARRAYSIZE 125
    1.12 +#define ROKEYBD_ARRAYSIZE 128
    1.13  
    1.14  static char RO_pressed[ROKEYBD_ARRAYSIZE];
    1.15  
    1.16 @@ -210,6 +210,9 @@
    1.17    RO_keymap[122] = SDLK_KP4;
    1.18    RO_keymap[123] = SDLK_KP5;
    1.19    RO_keymap[124] = SDLK_KP2;
    1.20 +  RO_keymap[125] = SDLK_LSUPER;
    1.21 +  RO_keymap[126] = SDLK_RSUPER;
    1.22 +  RO_keymap[127] = SDLK_MENU;
    1.23  
    1.24    SDL_memset(RO_pressed, 0, ROKEYBD_ARRAYSIZE);
    1.25  }