First post, by emendelson
I have a project that uses a paste-clipboard feature that derives from dbDOS (and which seems to be in the DOSBox-X code also). For various reasons, I've mapped it the paste-clipboard to Ctrl-Alt-F4, but I would like to map it, if possible, to Ctrl-Shift-Alt-V.
I was able to map it to Ctrl-Alt-v (not Ctrl-Alt-Shift-V) by doing this:
1. I added "MK_v" to the enum MapKeys list in mapper.h
2. In sdl_mapper.cpp, I added this to the MakeDefaultBind list:
case MK_v:
key = SDLK_v;
break;
3. I added this under "Get some Event hanlders" in sdlmain.cpp:
MAPPER_AddHandler(PasteClipboard, MK_v, MMOD1 | MMOD2, "paste", "Paste Clipboard");
What I can't figure out is how to make this work only with Shift-V, not v. I've tried adding MK_lshift and MK_rshift to mapper.h and the corresponding SDLK_lshift etc. in sdl_mapper.cpp. But I can't figure out how to make the MAPPER_AddHandler use them.
Is this possible at all? Am I wasting my time trying to solve this one? Many thanks for any help.