r/AndroidNativePorts • u/Emergency_Writer7174 π Legendary Member • 4d ago
π¬ [DISCUSSION] Why TRUE TOUCHSCREEN is hard for unofficial Android port
Have y'all ever noticed that most of the port you play have touchscreen controls that are basically just a virtual controller?
Instead of mobile touch UI?
there's actually a reason for that
I'll try explain simply why real touchscreen support is really hard in unofficial ports and why most end up using some sort of controller overlay like emulation
To put it simply. it's really hard because the port doesn't have a clean "way/path" to pull off true touchscreen
Let's say in a mobile game or an official port like GTA San Andreas, you walk up to a door or a car
The button to enter won't show up unless you're near it right?
That means the game detects you're near the car and only then gives you the button for it
In an unofficial port, doing that is REALLY HARD or basically impossible.
Most unofficial ports don't have the game original source code, they're basically highly optimized native "wrapper" or translation layers working from the outside of a closed game file
Without source code, the porter can't just open the script and tell the game "show a touch button when the player stands near a door"
Trying to force that by constantly scanning memory every frame will just crushed the performance or crash the game if you don't do it right
+ console and PC games are only built to listen for controller or keyboard inputs and plenty of them don't even have mouse/pointer support for menu. Putting a virtual controller overlay on the screen is way safer and lighter because it just translates screen taps into fake controller input
The game still thinks a normal gamepad is plugged in, so the dev doesn't have to rewrite the entire HUD from scratch
There's also no universal tool where a porter can click one button and get native touch controls across different game engines (maybe idk)
At the end of the day, official port are made by paid studios hired specifically to rebuild the UI for phones, while unofficial port are made for free by solo dev in their spare time and most of them play on handhelds like AYN or with a physical controller anyway
So if an unofficial port only gives you an onscreen controller overlay (or require a gamepad)
165
u/Sad_Beginning_3128 4d ago •
Don't post a long post like this bro, this sub can't read.
They'll read 2 sentences and think you're hating on port devs even though you're defending them here.
41
u/Linked713 4d ago
Unrelated but I like to think these buttons move away whenever Spiderman overlap them
12
u/JureIsStupid123_2 4d ago
I mean I vibecoded a NFSU2 mobile mod for specifficaly this - it hid any buttons that had no use in a given situation.
For example, if the player was playing using the automatic transmission, the port's gear shift buttons would dissapear until the player either entered a drag race or enabled manual transmission.
The NOS button was also hidden unless the player actually had the upgrade on their car.
Every button was hidden during the game's boot up and loading screens as well, etc.
6
u/fagarester 4d ago
https://youtu.be/f-XmtODHOyE?is=uK5n0cgKuvpruQ9C I'm sharing my developments in on-screen control.Β
6
u/AntonSonet88 3d ago
The only thing I care is that theres food on the table. I'm gonna eat it regardless if it just runs 25-30 fps.
11
u/Farah_SweetDreams annoing user? (u can report) 4d ago
I'll water it down for you since im kinda one of those who is too bored to read very long stuff:
NO source code = no screen controls
No screen controls = weird Buttons that controls the Game
11
u/QF_Dan 4d ago
It doesn't help that most of the ports are vibecoded and that's why making touch controls with the buttons wouldn't always work as intended
2
u/Wade_2545 3d ago
Even now I'm still amazed and Gamehub controller layout, because the community try to make the UI looks like an actual game port
22
u/Aeviu 3d ago
1
u/OtakuBhai07 3d ago
I think I saw this typa post beforeπ€
1
u/Particular_Pirate797 3d ago
I don't really mind even if they didn't change the ui but i jst want them to change the icon a little bit
1
u/Billylily01 3d ago
Was this vibe coded?
1
u/Casulknight_v2 3d ago
I gotta say if your are planning to play any of these ports and don't have a controller, wtf are you doing ? You're like adding 50% more pain and removing 75% of the fun. Requiring developpers to add touch controls support when a controller costs 10 bucks and makes both your lives easier.
3
u/Whole_Wafer7251 3d ago
I love these Kinda posts always makes me learn a few things here and there, don't ever stop making theseπ₯
1
u/Admirable_Ad3863 4d ago
Isn't the whole selling point of a "recomp" is to get that source code from reverse engeneering the game? Its like, if code is right there, then maybe its not simply laziness is an issue but a lack of experience in porting. We already have seen some people here that started porting games without any coding knowledge at all, and all because they just care about their title they like the most!
For example, RanggaCasper with NFS games, he included touch controls into the games interface and such, but still game doesn't have proper car observation in menu or even in gameplay, and mods still limited in texture and cars level. And yet he did already big work optimizing the game and making it playable on anything!
So time heals, only stays a surprise when a certain developer decides its enough and quits working on theirs stuff
1
u/Future_IssueLite 3d ago
Yeah the touch control is a lotπ I mean even Rise official port controls is just not it, though I couldn't even play it since my phone is bad. But honestly, atleast I could play
1
u/DaLoverBoii 3d ago
The guy behind Black & MW android ports Rangga did the best integration of controls.
1
u/Necessary-Worker930 3d ago
Yes, needless to say, those controls can be customized to some extent to make them more comfortable, as they've done with the BOTW port.
Native touchscreen controls, like those in an Android game, are another thing entirely.
1
u/Naxren 3d ago
Because they don't mean to play with touch screen in the first place unlike mobile game who adapted to it like Gameloft game
1
u/Ancient_Lemon_Party 3d ago
1
u/PrestigiousBrush8158 2d ago
Why not use a.i? People doing crazy sht with a.i lately. Cracking denovo games, porting pc games to mobile constantly, ps games to pc etc etc with reverse engineering. Idk how they do that but you guys can do it too. Someday it'll be possible for a port to be so easy to handle control like any other mobile game touch support. Someone made a terraria tml launcher and it's very much stable in mobile now. It does support both touch and button such as the Mobile version of terraria. The calamity mod works and other mods work smoothly as well and it constantly get 55-60 fps. This thing was impossible ages ago because of complex coading which no one wanted to do but with a.i it's possible now and it's truly revolutionary! Ik for a fact that you guys will fix this problems in the future no matter how complex or hard it is
1
u/I-UseLinux 1d ago
Im still in shock the the NFS: MW 2005 and GT4 port have both the options of interacting. Crazy shit!
1
u/hleyyyyi 9h ago
Tbh im more used to the console based button
-1
u/siriElectricboogaloo 4d ago
O wow, it's almost like this is just glorified emulation and this glaze to lazy vibe coders is unjustified.
Yall can't even add a decent touch screen yet boast about those "ports" (ports where you don't have the code because daddy ai did the hard work)
-2
u/Windroid-emu 4d ago
Toda hora a mesma postagemΒ
-5
u/cimocw 4d ago
I'm building a port and I'm not including on screen controls AT ALL
-5
u/alanna1990 4d ago
imagine devs trying to contextualize the touch controls depending on what the game needs, it would be a massive pain in the ass, good thing controllers exist, and honestly, anyone playing ports and with a decent device should already have a controller, I can't understand people thinking they can play stuff with a touch screen
-6
u/the_axemurmurer 4d ago
Touch controls = ew anyway, they hurt my bones. Using a controller or an android gaming handheld is so much better.
1
u/TowelWitty3535 1d ago
Only if there was a way to hook into the game and highjack execution. Maybe who knows, in 5-10 years we would have tools for this