mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-06 23:15:18 +00:00
Input: move some pad handler logic to the parent class
This commit is contained in:
parent
8f47f9517a
commit
4594148409
19 changed files with 1574 additions and 1602 deletions
|
|
@ -185,15 +185,15 @@ void pad_thread::ThreadFunc()
|
|||
Init();
|
||||
}
|
||||
|
||||
u32 connected = 0;
|
||||
u32 connected_devices = 0;
|
||||
|
||||
for (auto& cur_pad_handler : handlers)
|
||||
{
|
||||
cur_pad_handler.second->ThreadProc();
|
||||
connected += cur_pad_handler.second->connected;
|
||||
connected_devices += cur_pad_handler.second->connected_devices;
|
||||
}
|
||||
|
||||
m_info.now_connect = connected + num_ldd_pad;
|
||||
m_info.now_connect = connected_devices + num_ldd_pad;
|
||||
|
||||
// The following section is only reached when a dialog was closed and the pads are still intercepted.
|
||||
// As long as any of the listed buttons is pressed, cellPadGetData will ignore all input (needed for Hotline Miami).
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue