Page 1 of 1

The X Tech: SMBX Touch controls are not working.

Posted: Sat Nov 06, 2021 1:08 am
by George7UP
I wanted to download SMBX port on POCO X3 PRO (Android) and virtual controls are not working. I can just touch menu buttons. Please Help.

Re: The X Tech: SMBX Touch controls are not working.

Posted: Sat Nov 06, 2021 9:34 am
by Wohlstand
Question: Were virtual controls even drawn on the screen? If they didn't show, please open the "Settings" menu at the launcher and find the controller settings, set the touchscreen controller mode into "Always enable" (there is a logic that will disable it when the hardware keyboard is plugged, but the detection of that isn't clear by API, so, I left the option to manually control that). Also, the touchscreen controller can be shown/hidden at the left-top icon tap.

P.S. If you downloaded the APK in few minutes after I released the 1.3.5.2, please re-download, there was a major bug that caused the touchscreen controller to be worked, but not drawn, I released a hot-fix to resolve this issue.

Re: The X Tech: SMBX Touch controls are not working.

Posted: Sun Nov 07, 2021 4:00 am
by George7UP
I have tried to set this mode. I already had a touch buttons, but they aren't working (i can't move character, move map, etc.). Could be this problem with MIUI Global ROM? If yes, please adapt this port to Xiaomi/POCO phones.

Re: The X Tech: SMBX Touch controls are not working.

Posted: Sun Nov 07, 2021 4:13 am
by Wohlstand
George7UP wrote:
Sun Nov 07, 2021 4:00 am
I have tried to set this mode. I already had a touch buttons, but they aren't working (i can't move character, move map, etc.). Could be this problem with MIUI Global ROM? If yes, please adapt this port to Xiaomi/POCO phones.
That shouldn't matter, but for your luck, my mom has Xiaomi Redmi 7 phone with MIUI installed, so, I'll try to test the game on it. Btw, what Android version you do run? My mom's is 9.

Re: The X Tech: SMBX Touch controls are not working.

Posted: Sun Nov 07, 2021 4:23 am
by George7UP
I'm running Android 11

Re: The X Tech: SMBX Touch controls are not working.

Posted: Sun Nov 07, 2021 4:55 am
by Wohlstand
George7UP wrote:
Sun Nov 07, 2021 4:23 am
I'm running Android 11
Hmm... I should ask Chinese folks, they do have Redmi devices with Android 11...

Re: The X Tech: SMBX Touch controls are not working.

Posted: Sun Nov 07, 2021 5:10 am
by George7UP
Screenshot is here.
P. S. Controls are shown but not working.
Image

Added in 38 minutes 8 seconds:
In addition, i'm from Russia

Added in 2 hours 50 minutes 3 seconds:
Maybe, i choosed incorrect content pack, what content pack i should choose for Android?

Re: The X Tech: SMBX Touch controls are not working.

Posted: Sun Nov 07, 2021 1:53 pm
by Wohlstand
George7UP wrote:
Sun Nov 07, 2021 8:38 am
Maybe, i choosed incorrect content pack, what content pack i should choose for Android?
Bugs of engine absolutely don't matter to the content pack. I do have another question: where the cursor appears on the screen when you touch it? I mean, is there accurate positioning, or cursor got offset relative to your finger?

Added in 1 minute 37 seconds:
George7UP wrote:
Sun Nov 07, 2021 8:38 am
In addition, i'm from Russia
More fellow countrymen here :)

Added in 2 minutes 17 seconds:
P.S. If you found that offset happens, At Android's developer settings try to enable displaying finger touches (they will be shown as white dots) and try to make a screenshot while the finger is on screen, to see the offset between the finger and the in-game cursor

Re: The X Tech: SMBX Touch controls are not working.

Posted: Sun Nov 07, 2021 7:56 pm
by George7UP
Cursor get accurate positioning

Re: The X Tech: SMBX Touch controls are not working.

Posted: Sun Nov 07, 2021 8:04 pm
by Wohlstand
George7UP wrote:
Sun Nov 07, 2021 7:56 pm
Cursor get accurate positioning
Then, that's a mystery, because the touchscreen controllers were handled by the same touch events as the mouse. However wait, nope, "mouse" proceeded by the same mouse code as used for desktop, and the touchscreen uses the touch logic. Okay, as the fact touchscreen controller got shown, the touchscreen definitely detected. Now I have another question: does your phone has more sensor surfaces than the main screen? I do think, there is a possible issue caused by recognizing the wrong touchpad as a controller source, and that confuses you. My thing tries to detect that touch device that was actually used the first time after the game launch.

Added in 10 hours 25 minutes 25 seconds:
P.S. Yesterday I ran the game at my mom's Redmi 7 with MIUI 11 (Android 9), and the game worked perfectly

Re: The X Tech: SMBX Touch controls are not working.

Posted: Wed Dec 15, 2021 9:36 pm
by Wohlstand
Recently I upgraded the SDL2 library, so, I hope they fixed something at the backend. Please re-download the latest dev version ("master" branch) and try the game again.

Re: The X Tech: SMBX Touch controls are not working.

Posted: Tue Feb 08, 2022 4:18 am
by Wohlstand
Hello!

There was done some later investigation https://github.com/libsdl-org/SDL/issues/5322, and together with another folk, we resolved the problem. Could you try to download an updated devel version of the game and try it again? (devel builds were are here: https://github.com/Wohlstand/TheXTech/w ... vel-builds)

Re: The X Tech: SMBX Touch controls are not working.

Posted: Fri Nov 04, 2022 10:00 pm
by Wohlstand
Just the last thing: the latest version which contains this fix has been released a while ago.

Re: The X Tech: SMBX Touch controls are not working.

Posted: Mon Mar 20, 2023 9:33 am
by George7UP
Thanks a lot. Sorry for VERY LATE answer:-)