mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-11 17:28:29 +12:00
Make controller button code thread-safe (#405)
* Refactor spinlock to meet Lockable requirements * Input: Refactor button code and make it thread-safe
This commit is contained in:
parent
c40466f3a8
commit
028b3f7992
28 changed files with 311 additions and 220 deletions
|
@ -111,7 +111,7 @@ InputSettings2::InputSettings2(wxWindow* parent)
|
|||
Bind(wxEVT_TIMER, &InputSettings2::on_timer, this);
|
||||
|
||||
m_timer = new wxTimer(this);
|
||||
m_timer->Start(100);
|
||||
m_timer->Start(25);
|
||||
|
||||
m_controller_changed = EventService::instance().connect<Events::ControllerChanged>(&InputSettings2::on_controller_changed, this);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue