diff options
author | 2016-08-09 21:51:35 -0400 | |
---|---|---|
committer | 2016-08-09 21:58:01 -0400 | |
commit | 7835458e5159d6b92bb7b75b1f59e676db5b3224 (patch) | |
tree | 6b5dd3266ef7533da2aca8d677138efbe82b2273 | |
parent | d192a0a47553f6bc5c3d51d689b0bebcfb0a1fb1 (diff) |
Remap "P1 Mahjong Score" to / key for OS X
-rw-r--r-- | src/osd/modules/input/input_sdlcommon.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/osd/modules/input/input_sdlcommon.cpp b/src/osd/modules/input/input_sdlcommon.cpp index 479e5975666..4abcbd0251c 100644 --- a/src/osd/modules/input/input_sdlcommon.cpp +++ b/src/osd/modules/input/input_sdlcommon.cpp @@ -255,6 +255,14 @@ void sdl_osd_interface::customize_input_type_list(simple_list<input_type_entry> entry.defseq(SEQ_TYPE_STANDARD).set(KEYCODE_TAB, input_seq::not_code, KEYCODE_LALT, input_seq::not_code, KEYCODE_RALT); break; +#if defined(__APPLE__) && defined(__MACH__) + // 78-key Apple MacBook & Bluetooth keyboards have no right control key + case IPT_MAHJONG_SCORE: + if (entry.player() == 0) + entry.defseq(SEQ_TYPE_STANDARD).set(KEYCODE_SLASH); + break; +#endif + // leave everything else alone default: break; |