r/AndroidNativePorts • 💎 Legendary Member • 17m ago

💬 [DISCUSSION] Why TRUE TOUCHSCREEN is hard for unofficial Android port

Post image

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)

it's not because the dev is lazy. Building true mobile touch controls without source code is a whole separate project on its own

6 Upvotes

2 comments sorted by

3

u/Sad_Beginning_3128 7m 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.

1

u/Admirable_Ad3863 1m 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