diff options
author | Ricardo <rsribeiro@users.noreply.github.com> | 2022-11-11 15:56:12 +0300 |
---|---|---|
committer | kcgen <1557255+kcgen@users.noreply.github.com> | 2022-11-12 03:35:56 +0300 |
commit | a06ae08dec6bf1a53784b8dd31772c2824e7d5d7 (patch) | |
tree | ca720719557f4b7a8bdacc8fdac22b8d65b225b7 | |
parent | b28c10f8a8c102a32fc9a8f48a778a3137646640 (diff) |
Reposition Intl1 key in keyboard mapper
-rw-r--r-- | src/gui/sdl_mapper.cpp | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/src/gui/sdl_mapper.cpp b/src/gui/sdl_mapper.cpp index 954efa5dc..72d06f3ce 100644 --- a/src/gui/sdl_mapper.cpp +++ b/src/gui/sdl_mapper.cpp @@ -2174,18 +2174,9 @@ static void CreateLayout() { AddKeyButtonEvent(PX(XO+3),PY(YO+3),BW,BH*2,"ENT","kp_enter",KBD_kpenter); AddKeyButtonEvent(PX(XO),PY(YO+4),BW*2,BH,"0","kp_0",KBD_kp0); 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); + /* International Keys */ + AddKeyButtonEvent(PX(XO + 5), PY(YO), BW * 2, BH, "Intl1", "intl1", KBD_intl1); #undef XO #undef YO |