Mouse left / right clicks converted into different taps on Android

Started by Giacomo, Sat 09/11/2024 16:11:49

Previous topic - Next topic

Giacomo

Hello,
I' d like to ask if there is a way to convert left and right clicks of the mouse into single tap / double fast taps, to use the BASS module on phones.

I took a look in the forum and I found a solution that I also had thought about, that is to use a GUI on the clicked hotspot, object or character(with AnyClick), and then choose one of the two function of the module, look / interact, by the GUI. But I don't like this solution so much.

Searching on the internet I read about this file called "AndroidManifest.xml" where it should be possible to set the keyboard or mouse input for android, but I didn't understand so much about it; also, the android version of the game is full of folders and has more files with that name so I don't know which is the right one.

I think that a double tap can be easy and intuitive for a graphic adventure that uses the BASS module and I wonder if there will ever be the possibility, some day, that this option can be enabled in "Touch to mouse emulation" in Default Setup page.

Is it possible to configure the app inputs in the way I described? If yes, what do I have to do?

Thank you,
Giacomo
https://ko-fi.com/giacomo97557 To support Falco's adventures

eri0o

There's a config in default setup in the Editor in the Touch section I believe, there you can configure how you want to handle mouse emulation.

https://adventuregamestudio.github.io/ags-manual/DefaultSetup.html#touch

Other than this you can just come up with a different interface that works better for one click and use that instead - it depends how your game works but it may be easier to use. Say, all things do only one thing and when there's a need for more options you show a menu with the two or more choices - similar to verbcoin interface but more tailored for your game.

Khris

You can also use System.OperatingSystem == eOSAndroid to let your game handle input differently based on the OS it's running on.

I still think Seven Days a Sceptic had one of the most elegant interfaces, and it lends itself perfectly to one touch operation. Clicking an active area brings up the inventory, but the first few items are look / interact / talk icons.

SMF spam blocked by CleanTalk