diff --git a/rpcs3/Input/hid_pad_handler.cpp b/rpcs3/Input/hid_pad_handler.cpp index 5087882567..c848ed159d 100644 --- a/rpcs3/Input/hid_pad_handler.cpp +++ b/rpcs3/Input/hid_pad_handler.cpp @@ -7,6 +7,10 @@ #include "Emu/System.h" #include "pad_thread.h" +#if defined(__APPLE__) +#include "3rdparty/hidapi/hidapi/mac/hidapi_darwin.h" +#endif + #include #include @@ -63,6 +67,10 @@ bool hid_pad_handler::Init() if (res != 0) fmt::throw_exception("%s hidapi-init error.threadproc", m_type); +#if defined(__APPLE__) + hid_darwin_set_open_exclusive(0); +#endif + for (usz i = 1; i <= MAX_GAMEPADS; i++) // Controllers 1-n in GUI { m_controllers.emplace(m_name_string + std::to_string(i), std::make_shared());