Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mapping right analog stick #5

Open
frotna opened this issue Feb 12, 2021 · 4 comments
Open

Mapping right analog stick #5

frotna opened this issue Feb 12, 2021 · 4 comments

Comments

@frotna
Copy link

frotna commented Feb 12, 2021

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
Copy link
Author

frotna commented Feb 15, 2021

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...

@Shyri
Copy link
Owner

Shyri commented Feb 16, 2021

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
Copy link
Author

frotna commented Feb 18, 2021

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
Copy link
Author

frotna commented Mar 15, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants