Shyri / TouchMapper

TouchMapper is an Android App that lets you map gamepad input to touch events in the screen without needing to root the device. It is inteded to be used in Android TV where you don't have a touch screen and you might want to play games that only support touch events as input.
GNU General Public License v3.0
72 stars 12 forks source link

Mapping right analog stick #5

Open frotna opened 3 years ago

frotna commented 3 years ago

Hi. I successfully activate app and everything work on my ShieldTV, but can't figure out how to map right analog stick. There is only examples for left analog stick. Can you help a bit? Thank you

frotna commented 3 years ago

Hi. In meantime i found a way to do all TouchMapper Launcher thing from device itself - on shieldTV (no need for PC)... To do that one need to do next:

For stoping server click&hold mouse in RemoteADB shell app end select exit connection...

Shyri commented 3 years ago

Hi @frotna I'm very glad you managed to make it work.

Regarding how to map the right stick, I guess you'll need to use axis_z and axis_rz instead of axis_x and axis_y. Something like this:

      {
         "type": "CIRCLE",
         "radius": 70,
         "x": 160,
         "y": 700,
         "axis_z": 0,
         "axis_rz": 1,
         "action": "move"
       }

Let me know if that works

Really cool you found a way to use it without a computer. The project is open to PRs, if you want to include your run method into the readme please feel free to file a PR for it. I no longer work on this but I'm open to review whatever other people want to include, it could be modifying the instructions, or screenshots, modifications to code itself, or even mapping configurations for specific games that could be useful for other people.

frotna commented 3 years ago

Hi. Unfortunately it doesn't work. Left analog stick is still controlling movement but only diagonal, from left-top to right-bottom position, can't even get circular movement... When i use touchmapper gamepad test option i get this: Axis_x (0) Axis_z (11) Axis_y (1) Axis_rz (14) If a use axis_z (11) and axis_rz(14) it's the same as you suggested, left analog is in control but only diagonal movement left-top to right-bottom. { "type": "CIRCLE", "radius": 70, "x": 160, "y": 700, "axis_z": 11, "axis_rz": 14, "action": "move" }

Any other suggestion?

frotna commented 3 years ago

Hi. Can you help me with this a bit more... Thank you...