mirror of
https://github.com/moonlight-stream/moonlight-ios.git
synced 2026-10-25 21:40:08 +00:00
Disable Guide button emulation on gamepads with physical Guide buttons
This commit is contained in:
1 parent
e4534fd4af
commit
ecad1bea38
1 file changed
+8
@@ -500,6 +500,14 @@ static const double MOUSE_SPEED_DIVISOR = 2.5;
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (@available(iOS 14.0, tvOS 14.0, *)) {
|
||||||
|
if (controller.extendedGamepad != nil &&
|
||||||
|
controller.extendedGamepad.buttonHome != nil) {
|
||||||
|
// Disable special button emulation since we have a physical special button
|
||||||
|
limeController.supportedEmulationFlags &= ~EMULATING_SPECIAL;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Prepare controller haptics for use
|
// Prepare controller haptics for use
|
||||||
[self initializeControllerHaptics:limeController];
|
[self initializeControllerHaptics:limeController];
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user