mirror of
https://github.com/AxioDL/boo.git
synced 2025-12-14 07:36:26 +00:00
macOS IOKit interface fixes; callback-change mutex for controllers
This commit is contained in:
@@ -218,6 +218,7 @@ class HIDListenerWinUSB final : public IHIDListener
|
||||
if (tok.m_connectedDev)
|
||||
{
|
||||
XInputPad& pad = static_cast<XInputPad&>(*tok.m_connectedDev);
|
||||
std::lock_guard<std::mutex> lk(pad.m_callbackLock);
|
||||
if (pad.m_callback)
|
||||
pad.m_callback->controllerUpdate(pad, ConvertXInputState(state.Gamepad));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user