supertuxkart / stk-code

The code base of supertuxkart
Other
4.52k stars 1.06k forks source link

Can't stop vehicle with gyroscope/accelerometer/touch controls #5182

Open Switch123456789 opened 1 month ago

Switch123456789 commented 1 month ago

Description

If gyroscope or accelerometer-controls are active, there is no way to stop accelerating. I tried it on many different devices, I can't set it to neutral. This is especially annoying in the hubworld.

Configuration

System: Fairphone 5 Android 14 iodeOS Graphics card: Adreno 643 CPU: Qualcomm Snapdragon QCM6490

Off Topic

While we are at it, may I ask: Is there a reason why STK doesn't offer the standard control-scheme for racing games on touch devices (2 buttons on the left for steering & 2 buttons on the right for accelerating & breaking/reversing)? I play many different racing games on my phone, this is the only game I ever played that breaks this convention and it shows, I can barely play it. Why is that?

CodingJellyfish commented 3 weeks ago

Hi Fairphone user. For the off-topic part, most kart game don't need 5 separate buttons for backmirror, skid, powerup, nitro and rescue respectively, so I can't think of a good layout for conventional control which another 4 buttons needs to be added. If it exists, it would be nice since that's what I also called for.

Switch123456789 commented 2 weeks ago

Hey, thank you for the clarification! It is hard to explain, so I made a "quick" sketch. stk With this layout, I don't see a huge problem, since the right thumb will be free to push whatever is needed while the left thumb can steer. Usually you don't need any of the buttons on the right at the same time, with the exception of look back + powerup but there you can just swipe in the same way it is already implemented.

Please ignore alignment/dimensions/scaling/etc. I just wanted to visualize my idea that should solve most conflicts/issues, I am sure it can be improved, here is the Gimp2 project-file in case someone wants to do that ;)