TouchMapper icon indicating copy to clipboard operation
TouchMapper copied to clipboard

Mapping right analog stick

Open frotna opened this issue 4 years ago • 4 comments

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 avatar Feb 12 '21 23:02 frotna

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:

  • Enable Developer options
  • Enable ADB and ADB over network in Developer options
  • Connect your device to wifi router
  • On your device Start Remote ADB Shell app (https://play.google.com/store/apps/details?id=com.cgutman.androidremotedebugger&hl=en_US&gl=US)
  • Enter your device IP and connect
  • Enter these commands:
    • to copy mapper.json file Cp /sdcard/example.json /storage/self/primary/Android/data/es.shyri.touchmapper/files/mapping.json

    • to find "path" of app pm path es.shyri.touchmapper

    • to start server sh -c "CLASSPATH=/data/app/"path" /system/bin/app_process32 /system/bin es.shyri.touchmapper.Main" … in my case … sh -c "CLASSPATH=/data/app/es.shyri.touchmapper-rKMJDRhSwfsbfdgCGhAkWQ==/base.apk /system/bin/app_process32 /system/bin es.shyri.touchmapper.Main"

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

frotna avatar Feb 15 '21 10:02 frotna

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.

Shyri avatar Feb 16 '21 11:02 Shyri

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 avatar Feb 18 '21 19:02 frotna

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

frotna avatar Mar 15 '21 13:03 frotna