mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-05 22:47:03 +00:00
Qt/Input: disable in-game controls while the pad settings are opened
This commit is contained in:
parent
e80f2793eb
commit
b99a88afe2
6 changed files with 28 additions and 0 deletions
|
|
@ -142,11 +142,21 @@ void pad_thread::Reset()
|
|||
reset = active.load();
|
||||
}
|
||||
|
||||
void pad_thread::SetEnabled(bool enabled)
|
||||
{
|
||||
is_enabled = enabled;
|
||||
}
|
||||
|
||||
void pad_thread::ThreadFunc()
|
||||
{
|
||||
active = true;
|
||||
while (active)
|
||||
{
|
||||
if (!is_enabled)
|
||||
{
|
||||
std::this_thread::sleep_for(1ms);
|
||||
continue;
|
||||
}
|
||||
if (reset && reset.exchange(false))
|
||||
{
|
||||
Init();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue