summaryrefslogtreecommitdiff
path: root/Source/Core/InputCommon/ControllerInterface/OSX
diff options
context:
space:
mode:
authorLeo Lam <leolino.lam@gmail.com>2017-12-15 21:05:17 +0100
committerGitHub <noreply@github.com>2017-12-15 21:05:17 +0100
commit4733bbd8f38c0583aed0fd2faa2c9d577456bcfe (patch)
treeee324a2fd8b127160ec9bdb8d5d8b89329d02868 /Source/Core/InputCommon/ControllerInterface/OSX
parenta4592bc3c54d37111b916d707beb2152fdebf5fb (diff)
parent8e6677be90d67a652eb4bcf7d0b76f548e254172 (diff)
Merge pull request #6166 from ligfx/invokedeviceschangedcallbacks
ControllerInterface: cleanup callbacks API and logic
Diffstat (limited to 'Source/Core/InputCommon/ControllerInterface/OSX')
-rw-r--r--Source/Core/InputCommon/ControllerInterface/OSX/OSX.mm5
1 files changed, 0 insertions, 5 deletions
diff --git a/Source/Core/InputCommon/ControllerInterface/OSX/OSX.mm b/Source/Core/InputCommon/ControllerInterface/OSX/OSX.mm
index b13701209e..a923c1ea26 100644
--- a/Source/Core/InputCommon/ControllerInterface/OSX/OSX.mm
+++ b/Source/Core/InputCommon/ControllerInterface/OSX/OSX.mm
@@ -156,8 +156,6 @@ static void DeviceRemovalCallback(void* inContext, IOReturn inResult, void* inSe
return false;
});
- g_controller_interface.InvokeHotplugCallbacks();
- NOTICE_LOG(SERIALINTERFACE, "Removed device: %s", GetDeviceRefName(inIOHIDDeviceRef).c_str());
}
static void DeviceMatchingCallback(void* inContext, IOReturn inResult, void* inSender,
@@ -174,9 +172,6 @@ static void DeviceMatchingCallback(void* inContext, IOReturn inResult, void* inS
{
g_controller_interface.AddDevice(std::make_shared<Joystick>(inIOHIDDeviceRef, name));
}
-
- NOTICE_LOG(SERIALINTERFACE, "Added device: %s", name.c_str());
- g_controller_interface.InvokeHotplugCallbacks();
}
void Init(void* window)