mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-06 15:05:59 +00:00
input: move pad_state_notify_state_change to pad_thread
This commit is contained in:
parent
b0d4858e42
commit
b8452d29d6
26 changed files with 82 additions and 78 deletions
|
|
@ -21,8 +21,8 @@ static std::mutex s_hid_mutex; // hid_pad_handler is created by pad_thread and p
|
|||
static u8 s_hid_instances{0};
|
||||
|
||||
template <class Device>
|
||||
hid_pad_handler<Device>::hid_pad_handler(pad_handler type, bool emulation, std::vector<id_pair> ids)
|
||||
: PadHandlerBase(type, emulation), m_ids(std::move(ids))
|
||||
hid_pad_handler<Device>::hid_pad_handler(pad_handler type, std::vector<id_pair> ids)
|
||||
: PadHandlerBase(type), m_ids(std::move(ids))
|
||||
{
|
||||
std::scoped_lock lock(s_hid_mutex);
|
||||
ensure(s_hid_instances++ < 255);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue