mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
Depreciate old OSX Keyboard and Mouse
This commit is contained in:
@ -15,7 +15,6 @@
|
||||
#include "InputCommon/ControllerInterface/ControllerInterface.h"
|
||||
#include "InputCommon/ControllerInterface/OSX/OSX.h"
|
||||
#include "InputCommon/ControllerInterface/OSX/OSXJoystick.h"
|
||||
#include "InputCommon/ControllerInterface/OSX/OSXKeyboard.h"
|
||||
#include "InputCommon/ControllerInterface/OSX/RunLoopStopper.h"
|
||||
|
||||
namespace ciface
|
||||
@ -155,10 +154,6 @@ static void DeviceRemovalCallback(void* inContext, IOReturn inResult, void* inSe
|
||||
if (joystick && joystick->IsSameDevice(inIOHIDDeviceRef))
|
||||
return true;
|
||||
|
||||
const Keyboard* keyboard = dynamic_cast<const Keyboard*>(device);
|
||||
if (keyboard && keyboard->IsSameDevice(inIOHIDDeviceRef))
|
||||
return true;
|
||||
|
||||
return false;
|
||||
});
|
||||
g_controller_interface.InvokeHotplugCallbacks();
|
||||
@ -174,16 +169,8 @@ static void DeviceMatchingCallback(void* inContext, IOReturn inResult, void* inS
|
||||
// Add a device if it's of a type we want
|
||||
if (IOHIDDeviceConformsTo(inIOHIDDeviceRef, kHIDPage_GenericDesktop, kHIDUsage_GD_Keyboard))
|
||||
{
|
||||
if (g_window)
|
||||
g_controller_interface.AddDevice(
|
||||
std::make_shared<Keyboard>(inIOHIDDeviceRef, name, g_window));
|
||||
|
||||
}
|
||||
#if 0
|
||||
else if (IOHIDDeviceConformsTo(inIOHIDDeviceRef, kHIDPage_GenericDesktop, kHIDUsage_GD_Mouse))
|
||||
{
|
||||
g_controller_interface.AddDevice(new Mouse(inIOHIDDeviceRef, name));
|
||||
}
|
||||
#endif
|
||||
else
|
||||
{
|
||||
g_controller_interface.AddDevice(std::make_shared<Joystick>(inIOHIDDeviceRef, name));
|
||||
|
Reference in New Issue
Block a user