mirror of
https://github.com/moonlight-stream/moonlight-ios.git
synced 2026-06-15 21:21:45 +00:00
Disable Guide button emulation on gamepads with physical Guide buttons
This commit is contained in:
@@ -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