From c68b09d71710c85eed6eb9ec7de60537a859aee6 Mon Sep 17 00:00:00 2001 From: Gliniak Date: Tue, 13 Aug 2024 17:36:49 +0200 Subject: [PATCH] [XAM] Added Stub: XAutomationpUnbindController --- src/xenia/kernel/xam/xam_input.cc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/xenia/kernel/xam/xam_input.cc b/src/xenia/kernel/xam/xam_input.cc index dc1b8cb53..58aee7d1d 100644 --- a/src/xenia/kernel/xam/xam_input.cc +++ b/src/xenia/kernel/xam/xam_input.cc @@ -31,6 +31,15 @@ constexpr uint32_t XINPUT_FLAG_MIC = 0x20; // Based on "karaoke" titles constexpr uint32_t XINPUT_FLAG_ANYDEVICE = 0xFF; constexpr uint32_t XINPUT_FLAG_ANY_USER = 1 << 30; +dword_result_t XAutomationpUnbindController_entry(dword_t user_index) { + if (user_index > 4) { + return 0; + } + + return 1; +} +DECLARE_XAM_EXPORT1(XAutomationpUnbindController, kInput, kStub); + void XamResetInactivity_entry() { // Do we need to do anything? }