mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-07-21 16:55:46 +00:00
config: Add frame limiter toggle hotkey
This commit is contained in:
parent
72a4091aec
commit
2f2d7a9b02
3 changed files with 8 additions and 3 deletions
|
@ -1025,7 +1025,11 @@ void GMainWindow::InitializeHotkeys() {
|
|||
connect(hotkey_registry.GetHotkey(main_window, QStringLiteral("Mute Audio"), this),
|
||||
&QShortcut::activated, this,
|
||||
[] { Settings::values.audio_muted = !Settings::values.audio_muted; });
|
||||
|
||||
connect(hotkey_registry.GetHotkey(main_window, QStringLiteral("Toggle Framerate Limit"), this),
|
||||
&QShortcut::activated, this, [] {
|
||||
Settings::values.disable_fps_limit.SetValue(
|
||||
!Settings::values.disable_fps_limit.GetValue());
|
||||
});
|
||||
connect(hotkey_registry.GetHotkey(main_window, QStringLiteral("Toggle Mouse Panning"), this),
|
||||
&QShortcut::activated, this, [&] {
|
||||
Settings::values.mouse_panning = !Settings::values.mouse_panning;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue