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:
Megamouse 2021-08-26 04:55:24 +02:00
parent 38097783b8
commit 970fe0df12
2 changed files with 8 additions and 28 deletions

View file

@ -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;