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

  1. 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.

Comments (1)

  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

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.