mirror of https://github.com/PCSX2/pcsx2.git
Qt: Fix adding multi bindings from pad
This commit is contained in:
parent
b5721a92e9
commit
91e8a2cf0e
|
@ -96,6 +96,7 @@ void InputBindingDialog::onInputListenTimerTimeout()
|
||||||
|
|
||||||
void InputBindingDialog::startListeningForInput(u32 timeout_in_seconds)
|
void InputBindingDialog::startListeningForInput(u32 timeout_in_seconds)
|
||||||
{
|
{
|
||||||
|
m_new_bindings.clear();
|
||||||
m_input_listen_timer = new QTimer(this);
|
m_input_listen_timer = new QTimer(this);
|
||||||
m_input_listen_timer->setSingleShot(false);
|
m_input_listen_timer->setSingleShot(false);
|
||||||
m_input_listen_timer->start(1000);
|
m_input_listen_timer->start(1000);
|
||||||
|
@ -112,6 +113,7 @@ void InputBindingDialog::startListeningForInput(u32 timeout_in_seconds)
|
||||||
installEventFilter(this);
|
installEventFilter(this);
|
||||||
grabKeyboard();
|
grabKeyboard();
|
||||||
grabMouse();
|
grabMouse();
|
||||||
|
hookInputManager();
|
||||||
}
|
}
|
||||||
|
|
||||||
void InputBindingDialog::stopListeningForInput()
|
void InputBindingDialog::stopListeningForInput()
|
||||||
|
@ -125,6 +127,7 @@ void InputBindingDialog::stopListeningForInput()
|
||||||
delete m_input_listen_timer;
|
delete m_input_listen_timer;
|
||||||
m_input_listen_timer = nullptr;
|
m_input_listen_timer = nullptr;
|
||||||
|
|
||||||
|
unhookInputManager();
|
||||||
releaseMouse();
|
releaseMouse();
|
||||||
releaseKeyboard();
|
releaseKeyboard();
|
||||||
removeEventFilter(this);
|
removeEventFilter(this);
|
||||||
|
|
Loading…
Reference in New Issue