mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-06 15:01:28 +12:00
Qt: ignore all game window hotkeys on "disable kb hotkeys"
This commit is contained in:
parent
85f288651b
commit
739c4bcfc8
1 changed files with 38 additions and 46 deletions
|
@ -243,6 +243,11 @@ void gs_frame::handle_shortcut(gui::shortcuts::shortcut shortcut_key, const QKey
|
|||
{
|
||||
gui_log.notice("Game window registered shortcut: %s (%s)", shortcut_key, key_sequence.toString());
|
||||
|
||||
if (m_disable_kb_hotkeys)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
switch (shortcut_key)
|
||||
{
|
||||
case gui::shortcuts::shortcut::gw_toggle_fullscreen:
|
||||
|
@ -252,7 +257,7 @@ void gs_frame::handle_shortcut(gui::shortcuts::shortcut shortcut_key, const QKey
|
|||
}
|
||||
case gui::shortcuts::shortcut::gw_exit_fullscreen:
|
||||
{
|
||||
if (visibility() == FullScreen && !m_disable_kb_hotkeys)
|
||||
if (visibility() == FullScreen)
|
||||
{
|
||||
toggle_fullscreen();
|
||||
}
|
||||
|
@ -280,8 +285,6 @@ void gs_frame::handle_shortcut(gui::shortcuts::shortcut shortcut_key, const QKey
|
|||
break;
|
||||
}
|
||||
case gui::shortcuts::shortcut::gw_pause_play:
|
||||
{
|
||||
if (!m_disable_kb_hotkeys)
|
||||
{
|
||||
switch (Emu.GetStatus())
|
||||
{
|
||||
|
@ -301,12 +304,9 @@ void gs_frame::handle_shortcut(gui::shortcuts::shortcut shortcut_key, const QKey
|
|||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
case gui::shortcuts::shortcut::gw_restart:
|
||||
{
|
||||
if (!m_disable_kb_hotkeys)
|
||||
{
|
||||
if (Emu.IsStopped())
|
||||
{
|
||||
|
@ -316,12 +316,9 @@ void gs_frame::handle_shortcut(gui::shortcuts::shortcut shortcut_key, const QKey
|
|||
|
||||
extern bool boot_last_savestate(bool testing);
|
||||
boot_last_savestate(false);
|
||||
}
|
||||
break;
|
||||
}
|
||||
case gui::shortcuts::shortcut::gw_savestate:
|
||||
{
|
||||
if (!m_disable_kb_hotkeys)
|
||||
{
|
||||
if (!g_cfg.savestate.suspend_emu)
|
||||
{
|
||||
|
@ -337,14 +334,9 @@ void gs_frame::handle_shortcut(gui::shortcuts::shortcut shortcut_key, const QKey
|
|||
Emu.Kill(false, true);
|
||||
return;
|
||||
}
|
||||
break;
|
||||
}
|
||||
case gui::shortcuts::shortcut::gw_rsx_capture:
|
||||
{
|
||||
if (!m_disable_kb_hotkeys)
|
||||
{
|
||||
g_user_asked_for_frame_capture = true;
|
||||
}
|
||||
break;
|
||||
}
|
||||
case gui::shortcuts::shortcut::gw_frame_limit:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue