Opened 8 months ago
Last modified 7 months ago
#16420 new defect
SCI: LSL7: Map shortcut on keyboard doesn't work
| Reported by: | GermanTribun | Owned by: | |
|---|---|---|---|
| Priority: | normal | Component: | Engine: SCI |
| Version: | Keywords: | ||
| Cc: | Game: | Leisure Suit Larry 7 |
Description
ScummVM: 2.9.1
Game Version: German CD
OS: Windows 10 Pro
Normally, pressing Ctrl+M is the keyboard shortcut to go to the map screen. However, at least in the German version, when using it, nothing happens. All other keyboard shortcuts work, only this one doesn't.
Change History (5)
comment:1 by , 8 months ago
comment:2 by , 8 months ago
Ah, OK. It's a technical issue.
Does Ctrl+C work for cheating at the dice game? That's the only action where you absolutely HAVE to use the keyboard shortcut.
comment:3 by , 7 months ago
When the global keymapper has a default that collides with an SCI game, I don't know of any alternatives beyond manually changing the conflicting keybinding in your settings.
In engines that are less abstract, we can add a keymapper action to an engine, as antoniou79 mentioned. In SCI we can't do that, that's why we don't have any keymapper actions. The SCI engine has no knowledge of any of these hotkeys. All hotkeys are implemented in game-specific scripts. They receive abstract input events containing keycodes and key modifiers states, and then do whatever with them. It's our job in the engine to package up ScummVM events as SCI events and pass them on. When the keymapper blocks input events from reaching our engine code, the chain is broken and I don't know what we can do about it in the engine.
Regarding CTRL+C, you should try it and let us know, because that's the default binding for Copy in the ScummVM GUI. You can go to Global Options \ Keymap to see them all. I don't know if GUI actions conflict in-game or not. I would test it I don't really know how to play LSL7, and if I'm being honest, I don't particularly want to =)
comment:4 by , 7 months ago
I tested it out, Ctrl+C at the dice game to cheat and see all the dice still works.
Guess since the original issue can't be fixed, this is to be closed? Maybe have somewhere in the game descriptions on the site and wiki a note that the keyboard shortcut for the map doesn't work?
comment:5 by , 7 months ago
I've added a section "Hotkey issues" in the wiki page for LSL7 () with some information about this.
https://wiki.scummvm.org/index.php?title=Leisure_Suit_Larry_7#Hotkey_issues

This is because Ctrl+M is mapped in the Global Keymaps (Global Options -> Keymaps) to "Toggle mouse capture" action.
As a workaround you can remap that action, from the Global Keymaps tab, to another keymap or clear it altogether.
I don't see specialized keymapped support for LSL7 (ie. adding the game's special keymaps as actions to the keymapper), but if we do add it, this would show up as a keymap to customize and would (probably) override the global one.