mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-04 14:08:37 +00:00
input: revert stupid ideas
In order to make input more "atomic" I added man in the middle interfaces to decrease the delay between input and cellPad. But I failed to notice that this introduced a data race between both ends of the pipeline. I hope the new mutex location doesn't cause any noticeable input lag.
This commit is contained in:
parent
38097783b8
commit
970fe0df12
2 changed files with 8 additions and 28 deletions
|
|
@ -24,7 +24,7 @@ public:
|
|||
~pad_thread();
|
||||
|
||||
PadInfo& GetInfo() { return m_info; }
|
||||
auto& GetPads() { return m_pads_interface; }
|
||||
auto& GetPads() { return m_pads; }
|
||||
void SetRumble(const u32 pad, u8 largeMotor, bool smallMotor);
|
||||
void Init();
|
||||
void SetIntercepted(bool intercepted);
|
||||
|
|
@ -48,7 +48,6 @@ protected:
|
|||
|
||||
PadInfo m_info{ 0, 0, false };
|
||||
std::array<std::shared_ptr<Pad>, CELL_PAD_MAX_PORT_NUM> m_pads;
|
||||
std::array<std::shared_ptr<Pad>, CELL_PAD_MAX_PORT_NUM> m_pads_interface;
|
||||
|
||||
std::shared_ptr<std::thread> thread;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue