Search Issue Tracker
Fixed
Fixed in 2023.1.0a10
Votes
0
Found in
2019.4.40f1
2020.3.35f1
2021.3.5f1
2023.1.0a1
Issue ID
UUM-7557
Regression
No
DualShock4: several buttons force a switch to keyboard mapping on Android or iOS
-e: see title
-repro:
--open attached project or get the Input Warriors
--build&run scene for iOS or Android
--run around with the warrior
--notice that the mapping if DS4 gamepad listed on top of the warrior
--press either L1, R1, Share or touchpad
--NOTICE that it now switched to keyboard mapping
--doesn't do it on Desktop
--tested with Google Pixl2 Android 11 & iPhone 8 iOS 15
Comments (1)
-
Perocket
Dec 07, 2022 22:16
The issue still persists for the analog triggers, when pressing them in slightly. After pressing them in enough they will be detected as gamepad input (though when releasing them they'll count as keyboard input again). Changing their deadzone and default button press point doesn't seem to affect this.
A workaround for this is to not read keyboard input if the device is a handheld with a gamepad attached. It's not perfect but the odds of someone using a keyboard on Android while also having a gamepad attached are pretty slim."&& (SystemInfo.deviceType != DeviceType.Handheld || (SystemInfo.deviceType == DeviceType.Handheld && Gamepad.current == null)"
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Assigned font's bold/font-weight styles render using Default Font's assets when Default Font has corresponding style assets defined in TMP Settings
- "Modifying the parent of a VisualElement while it’s already being modified is not allowed" error is thrown when entering text and pressing tab in the Search window
- Mesh colliders are not updating their positions of bounds correctly
- Images are missing from the "Open the sprite editor" documentation for 6.0, 6.1 and 6.2
- The previous element in the array is modified when assigning an Asset to a new element of AssetReferenceT
Resolution Note (fix version 2023.1.0a10):
Input: Removed emulation of keyboard key presses when L1/R1/L2/R2/Start/Select are pressed on gamepad on Android with input system package. Before they were triggering left/right shift/alt, enter and pause keys.