Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Android Phones Only Respond to Stylus with new Input System, Not Touch

Discussion in 'Input System' started by kingsapo, Feb 14, 2021.

  1. kingsapo

    kingsapo

    Joined:
    Sep 6, 2013
    Posts:
    8
    Hi, I've got an issue with the new Input System and an old Android phone, specifically the Samsung Galaxy Note 4. I've prepared a sample project with a button and script to respond to touches. I'm using the default input action asset "DefaultInputActions" located at "Packages/Input System/Input System/Plugins/PlayerInput". The button sends an event to a method on my script, which logs a line to the console. The script also responds to the triggered state of the "Fire" action, which should trigger whenever the screen is touched.

    The problem is, on this specific phone, none of this works by touching the phone's screen, but the stylus appears to have partial functionality. Touching the screen doesn't trigger the button or the "Fire" action, but using the stylus on the button does work, and the "Fire" action is only triggered sometimes using the stylus. When tested on an Android phone without a stylus, in this case the Samsung Galaxy A01, everything works as expected.

    It feels like the fact that this phone has a stylus is the problem. It could also be the old Android version on this phone, though I wasn't able to find any resources outlining the minimum supported Android version for the new Input System or Unity itself if that's the case. I've included more details below, and have included the project if anyone would like to take a look. Thank you.

    Unity version: 2020.2.4f1
    Input System version: 1.0.2

    Test device: Samsung Galaxy Note 4 (SM-N910T)
    Android version: 6.0.1
     

    Attached Files:

  2. GrbJR

    GrbJR

    Joined:
    Aug 17, 2020
    Posts:
    2
    Hello. For the last month I've had a similar problem with my phone (Galaxy Note S10+) which started after Android 30 was installed in an update. Every week I have been waiting for the new version to come out, fiddling with settings when I work on it on the weekend. I didn't even think of trying the stylus out until I read this post. And it works with the stylus but not with naked fingers. Except for the UI component which works fine regardless. If you have any new insight that would be helpful. Maybe we can get someone from Unity to help us out?