mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-09 11:20:56 +00:00
GUI: Move Keyboards shortcut help to SDL backend
This commit is contained in:
parent
b307976808
commit
6ae8089c61
@ -26,6 +26,7 @@
|
||||
#include "gui/EventRecorder.h"
|
||||
#include "common/taskbar.h"
|
||||
#include "common/textconsole.h"
|
||||
#include "common/translation.h"
|
||||
|
||||
#ifdef USE_DISCORD
|
||||
#include "backends/presence/discord/discord.h"
|
||||
@ -1004,3 +1005,42 @@ void OSystem_SDL::clearGraphicsModes() {
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
static const char *helpTabs[] = {
|
||||
_s("Keyboard"),
|
||||
"",
|
||||
_s(
|
||||
"## Keyboard shortcuts\n"
|
||||
"\n"
|
||||
"ScummVM supports various in-game keyboard and mouse shortcuts, and since version 2.2.0 these can be manually configured in the **Keymaps tab**, or in the **configuration file**.\n"
|
||||
"\n"
|
||||
"For game-specific controls, see the [wiki entry](https://wiki.scummvm.org/index.php?title=Category:Supported_Games) for the game you are playing.\n"
|
||||
"\n"
|
||||
"Default shortcuts are shown in the table.\n"
|
||||
"\n"
|
||||
"| Shortcut | Description\n"
|
||||
"| --------------------------------\n"
|
||||
"| `Ctrl+F5` -- Displays the Global Main Menu\n"
|
||||
"| `Cmd+q` -- Quit (macOS)\n"
|
||||
"| `Ctrl+q` -- Quit (Linux/Unix)\n"
|
||||
"| `Alt+F4` -- Quit (Windows)\n"
|
||||
"| `Ctrl+z` -- Quit (other platforms)\n"
|
||||
"| `Ctrl+u` -- Mutes all sounds\n"
|
||||
"| `Ctrl+m` -- Toggles mouse capture\n"
|
||||
"| `Ctrl+Alt` and `9` or `0` -- Cycles forwards/backwards between graphics filters\n"
|
||||
"| `Ctrl+Alt` and `+` or `-` -- Increases/decreases the scale factor\n"
|
||||
"| `Ctrl+Alt+a` -- Toggles aspect ratio correction on/off\n"
|
||||
"| `Ctrl+Alt+f` -- Toggles between nearest neighbor and bilinear interpolation (graphics filtering on/off)\n"
|
||||
"| `Ctrl+Alt+s` -- Cycles through stretch modes\n"
|
||||
"| `Alt+Enter` -- Toggles full screen/windowed mode\n"
|
||||
"| `Alt+s` -- Takes a screenshot\n"
|
||||
"| `Ctrl+F7` -- Opens virtual keyboard (if enabled). This can also be opened with a long press of the middle mouse button or wheel.\n"
|
||||
"| `Ctrl+Alt+d` -- Opens the ScummVM debugger\n"
|
||||
),
|
||||
|
||||
0,
|
||||
};
|
||||
|
||||
const char **OSystem_SDL::buildHelpDialogData() {
|
||||
return helpTabs;
|
||||
}
|
||||
|
@ -191,6 +191,7 @@ protected:
|
||||
#endif
|
||||
|
||||
virtual uint32 getOSDoubleClickTime() const { return 0; }
|
||||
virtual const char **buildHelpDialogData() override;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
@ -170,39 +170,6 @@ HelpDialog::HelpDialog()
|
||||
RichTextWidget *saftext = new RichTextWidget(tab, 10, 10, _w - 10, tabHeight - buttonHeight - 10, helpText3);
|
||||
saftext->setImageArchive("android-help.zip");
|
||||
|
||||
tab->addTab(_("Keyboard"), "GlobalOptions_Graphics", false);
|
||||
|
||||
Common::U32String helpText4 = _(
|
||||
"## Keyboard shortcuts\n"
|
||||
"\n"
|
||||
"ScummVM supports various in-game keyboard and mouse shortcuts, and since version 2.2.0 these can be manually configured in the **Keymaps tab**, or in the **configuration file**.\n"
|
||||
"\n"
|
||||
"For game-specific controls, see the [wiki entry](https://wiki.scummvm.org/index.php?title=Category:Supported_Games) for the game you are playing.\n"
|
||||
"\n"
|
||||
"Default shortcuts are shown in the table.\n"
|
||||
"\n"
|
||||
"| Shortcut | Description\n"
|
||||
"| --------------------------------\n"
|
||||
"| `Ctrl+F5` -- Displays the Global Main Menu\n"
|
||||
"| `Cmd+q` -- Quit (macOS)\n"
|
||||
"| `Ctrl+q` -- Quit (Linux/Unix)\n"
|
||||
"| `Alt+F4` -- Quit (Windows)\n"
|
||||
"| `Ctrl+z` -- Quit (other platforms)\n"
|
||||
"| `Ctrl+u` -- Mutes all sounds\n"
|
||||
"| `Ctrl+m` -- Toggles mouse capture\n"
|
||||
"| `Ctrl+Alt` and `9` or `0` -- Cycles forwards/backwards between graphics filters\n"
|
||||
"| `Ctrl+Alt` and `+` or `-` -- Increases/decreases the scale factor\n"
|
||||
"| `Ctrl+Alt+a` -- Toggles aspect ratio correction on/off\n"
|
||||
"| `Ctrl+Alt+f` -- Toggles between nearest neighbor and bilinear interpolation (graphics filtering on/off)\n"
|
||||
"| `Ctrl+Alt+s` -- Cycles through stretch modes\n"
|
||||
"| `Alt+Enter` -- Toggles full screen/windowed mode\n"
|
||||
"| `Alt+s` -- Takes a screenshot\n"
|
||||
"| `Ctrl+F7` -- Opens virtual keyboard (if enabled). This can also be opened with a long press of the middle mouse button or wheel.\n"
|
||||
"| `Ctrl+Alt+d` -- Opens the ScummVM debugger\n"
|
||||
);
|
||||
|
||||
new RichTextWidget(tab, 10, 10, _w - 10, tabHeight - buttonHeight - 10, helpText4);
|
||||
|
||||
const char **backendTabs = g_system->buildHelpDialogData();
|
||||
|
||||
if (backendTabs) {
|
||||
|
@ -107,6 +107,7 @@ backends/platform/ios7/ios7_options.mm
|
||||
backends/platform/ios7/ios7_osys_events.cpp
|
||||
backends/platform/ios7/ios7_osys_main.cpp
|
||||
backends/platform/maemo/maemo.cpp
|
||||
backends/platform/sdl/sdl.cpp
|
||||
backends/platform/sdl/macosx/appmenu_osx.mm
|
||||
backends/platform/sdl/macosx/macosx.cpp
|
||||
backends/platform/sdl/miyoo/miyoo.cpp
|
||||
|
Loading…
Reference in New Issue
Block a user