UltraStar-Deluxe / Play

Free and open source singing game with song editor for desktop, mobile, and smart TV

Home Page:https://ultrastar-play.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cant use touch on surface

ownstar23 opened this issue · comments

commented

When playing on my Surface Go 3 i am not able to use touch to navigate through the game. For example i can not scroll with my fingers through the songs or even click a button.

  • UltraStar Play version: 0.9.0
  • Windows 11 Home

Does the keyboard work?

If yes, then navigate to "Settings > Develop" and check whether the option "use custom events for input actions" changes anything.

commented

Keyboard works but the option "use custom events for input actions" changes nothing.

I just found out that when im holding a button with a finger and clicking that same button with another finger the game clicks that button. It seems to behave like a left mouse click. But thats very uncomfortable and scrolling is not possible.

I would expect a normal touch behavior like any other app on my surface, for example spotify, where you simply can scroll and click with one finger.

commented

closing was a mistake.

I would expect a normal touch behavior like any other app on my surface, for example spotify, where you simply can scroll and click with one finger.

Me too, this is how it should work.
That said, I don't have a Windows touch device to test this.

It may just be some configuration issue with Unity or the Input Actions.

Anyone here has a Windows touch device to debug this?

Does it work when you connect a regular USB or Bluetooth mouse? @ownstar23

commented

I just found something interesting: the described behaviour seems only to appear when playing in "FullScreenWindow". In "Windowed" the touch works as expected and i can click and scroll through songs with my finger.

USB connected mouse works but changes nothing with touch behaviour.

commented

i investigated the problem a little further: the problem still exists in "windowed" mode, it worked at the beginning because the window was so small that pointing with one finger was recognized as two fingers. When im draging the window to a normal size the false behaviour still exists.

It has to do with the Input Actions: When i opened the repo in unity, "Press (Multi-Touch)" was selected as "click".
Press_Multi-touch
I Changed it to "Tap" and Buildt the Project. After this i was able to navigate through a double tap with my finger in the game
Primary-Touch_Tap
As next Step i tried the action "Press (Single-Touch)", but this doesnt work. Now i cant press a button with my fingers.

Thanks for testing this.
Might be worth to ask about this issue on the Unity forum. Not sure if it is a Unity bug or something we configured the wrong way.

commented

It seems to be a problem with Unity (current editor version: 2022.2.4f2). I opened the repo with a newer editor version (2023.1.7f1) and built the game. Now the touch is working as expected, i can click and even scroll through the songs. (tested on Lenovo Yoga C940 and Microsoft Surface Go 3)

I guess Melody Mania is also built in editor version 2022.2.4f2, because the touch on my Surface Go 3 is not working. I would suggest to change to unity version 2023.1.7f1, even though i cant say if that has negative effects on other components.

Thanks for testing this.
I think Unity may have backported the fix to the LTS version (I opened a bug report that has been fixed by Unity).

Melody Mania should upgrade the Unity version soon.

EDIT:
I just confirmed that the button click issue in Samsung DeX has been fixed in Unity 2022.3.6f1 (LTS).
I assume that this touch issue on Surface devices is related and thus may also be fixed in this version.

The beta branch of Melody Mania uses Unity 2022.3.6f1.
Please test whether this fixes the touch issue on Surface devices.

commented

Touch now works on my Surface Go 3.
Thanks!