mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-04 14:08:37 +00:00
Qt/Overlays: Add home menu shortcut to game window
This commit is contained in:
parent
e4dd957bbc
commit
96e495c61d
5 changed files with 17 additions and 1 deletions
|
|
@ -42,6 +42,7 @@ namespace pad
|
|||
atomic_t<bool> g_started{false};
|
||||
atomic_t<bool> g_reset{false};
|
||||
atomic_t<bool> g_enabled{true};
|
||||
atomic_t<bool> g_home_menu_requested{false};
|
||||
}
|
||||
|
||||
namespace rsx
|
||||
|
|
@ -451,7 +452,7 @@ void pad_thread::operator()()
|
|||
}
|
||||
|
||||
// Make sure we call this function only once per button press
|
||||
if (ps_button_pressed && !m_ps_button_pressed)
|
||||
if ((ps_button_pressed && !m_ps_button_pressed) || pad::g_home_menu_requested.exchange(false))
|
||||
{
|
||||
open_home_menu();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -76,6 +76,7 @@ namespace pad
|
|||
extern atomic_t<bool> g_enabled;
|
||||
extern atomic_t<bool> g_reset;
|
||||
extern atomic_t<bool> g_started;
|
||||
extern atomic_t<bool> g_home_menu_requested;
|
||||
|
||||
static inline class pad_thread* get_current_handler(bool relaxed = false)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue