diff options
Diffstat (limited to 'src/gui/sdl_mapper.cpp')
-rw-r--r-- | src/gui/sdl_mapper.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/gui/sdl_mapper.cpp b/src/gui/sdl_mapper.cpp index 188bd38ac..954efa5dc 100644 --- a/src/gui/sdl_mapper.cpp +++ b/src/gui/sdl_mapper.cpp @@ -2176,6 +2176,19 @@ static void CreateLayout() { AddKeyButtonEvent(PX(XO+2),PY(YO+4),BW,BH,".","kp_period",KBD_kpperiod); #undef XO #undef YO + +#define XO 0 +#define YO 11 +#define MX 1 +#define MY 1 +#define CX (BW / 2) +#define BU(_X_) (BW * (_X_) + MX * ((_X_)-1)) +#define BV(_Y_) (BH * (_Y_) + MY * ((_Y_)-1)) + + AddKeyButtonEvent(PX(XO + 4) + CX, PY(YO + 0), BU(1), BV(1), "\\", "intl1", KBD_intl1); +#undef XO +#undef YO + #define XO 10 #define YO 8 /* Joystick Buttons/Texts */ @@ -2475,6 +2488,8 @@ static struct { /* Is that the extra backslash key ("less than" key) */ /* on some keyboards with the 102-keys layout?? */ {"lessthan", SDL_SCANCODE_NONUSBACKSLASH}, + + {"intl1", SDL_SCANCODE_INTERNATIONAL1}, {0, SDL_SCANCODE_UNKNOWN}}; |