mirror of
https://github.com/moonlight-stream/moonlight-ios.git
synced 2025-07-02 07:46:16 +00:00
Don't emulate an OSC controller if absolute touch mode is enabled
This commit is contained in:
parent
03f330ccff
commit
6b823e155a
@ -577,11 +577,13 @@ static const double MOUSE_SPEED_DIVISOR = 2.5;
|
|||||||
}
|
}
|
||||||
|
|
||||||
DataManager* dataMan = [[DataManager alloc] init];
|
DataManager* dataMan = [[DataManager alloc] init];
|
||||||
OnScreenControlsLevel level = (OnScreenControlsLevel)[[dataMan getSettings].onscreenControls integerValue];
|
TemporarySettings* settings = [dataMan getSettings];
|
||||||
|
OnScreenControlsLevel level = (OnScreenControlsLevel)[settings.onscreenControls integerValue];
|
||||||
|
|
||||||
// Even if no gamepads are present, we will always count one if OSC is enabled,
|
// Even if no gamepads are present, we will always count one if OSC is enabled,
|
||||||
// or it's set to auto and no keyboard or mouse is present.
|
// or it's set to auto and no keyboard or mouse is present. Absolute touch mode
|
||||||
if (level != OnScreenControlsLevelOff && (![ControllerSupport hasKeyboardOrMouse] || level != OnScreenControlsLevelAuto)) {
|
// disables the OSC.
|
||||||
|
if (level != OnScreenControlsLevelOff && (![ControllerSupport hasKeyboardOrMouse] || level != OnScreenControlsLevelAuto) && !settings.absoluteTouchMode) {
|
||||||
mask |= 0x1;
|
mask |= 0x1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user