mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-10 08:09:26 +01:00
InputCommon: Enable ARC for obj-c++
This commit is contained in:
parent
d29b349a0c
commit
b96bc4267e
@ -124,6 +124,9 @@ elseif(APPLE)
|
|||||||
${FORCEFEEDBACK_LIBRARY}
|
${FORCEFEEDBACK_LIBRARY}
|
||||||
${IOK_LIBRARY}
|
${IOK_LIBRARY}
|
||||||
)
|
)
|
||||||
|
target_compile_options(inputcommon PRIVATE
|
||||||
|
-fobjc-arc
|
||||||
|
)
|
||||||
elseif(X11_FOUND)
|
elseif(X11_FOUND)
|
||||||
target_sources(inputcommon PRIVATE
|
target_sources(inputcommon PRIVATE
|
||||||
ControllerInterface/Xlib/XInput2.cpp
|
ControllerInterface/Xlib/XInput2.cpp
|
||||||
|
@ -149,7 +149,7 @@ KeyboardAndMouse::KeyboardAndMouse(void* view)
|
|||||||
AddCombinedInput("Shift", {"Left Shift", "Right Shift"});
|
AddCombinedInput("Shift", {"Left Shift", "Right Shift"});
|
||||||
AddCombinedInput("Ctrl", {"Left Control", "Right Control"});
|
AddCombinedInput("Ctrl", {"Left Control", "Right Control"});
|
||||||
|
|
||||||
NSView* cocoa_view = reinterpret_cast<NSView*>(view);
|
NSView* cocoa_view = (__bridge NSView*)view;
|
||||||
|
|
||||||
// PopulateDevices may be called on the Emuthread, so we need to ensure that
|
// PopulateDevices may be called on the Emuthread, so we need to ensure that
|
||||||
// these UI APIs are only ever called on the main thread.
|
// these UI APIs are only ever called on the main thread.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user