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

Analog Sticks? #9

Closed
defkev opened this issue Oct 30, 2022 · 9 comments
Closed

Analog Sticks? #9

defkev opened this issue Oct 30, 2022 · 9 comments
Labels
enhancement New feature or request

Comments

@defkev
Copy link

defkev commented Oct 30, 2022

Nice little tool!

I am trying to use this with RPCS3 as a second controller, the left stick works as expect but the right is centered at the bottom left causing e.g. the camera to deadlock rotate:

rpcs3

furthermore where are the GamePad Analog Sticks?
Oddly LT/RT seem to control the X/Y axis of the right stick in that mode:

sticks

Cheers

@teamclouday
Copy link
Owner

Aha this is probably caused by a misconfiguration of the axes. In my setup, I use Z and Rz for LT/RT, referring to the xbox controller. I guess RPCS3 matches it to the right analog stick. These two axes are by default zero, and that's why it locks to the bottom left corner.

image

So in your config menu, you should probably try:
left stick:

  • left, right -> X
  • up, down -> Y

right stick:

  • left, right -> Rx
  • up, down -> Ry

LT RT:

  • LT -> Z
  • RT -> Rz

Why are L2 R2 buttons in the config?

The reason I didn't add analog sticks on Android app is because I'm not sure how to implement or design it.
You may not notice it on your phone but on my phone there's not really much space on two sides. And yes I agree that these two sticks should be added.
Do you have any suggestions?

@defkev
Copy link
Author

defkev commented Oct 31, 2022

Okay so after some fiddeling around i somewhat got it working with the (Default) Steering control option:

androidsteering

The problem seems to be the mapping reported by the different Wheel app modes:

Steering (Default):

  • left stick: left/right -> X-/+ -> center is 50% on the X axis -> Okay
  • right stick: up/down -> R/Z -> center is 0% on the R/Z axis respectively -> Shouldn't this be R-/+ ???

Steering (Alternative):

  • left stick: left/right -> X-/+ -> center is 50% on the X axis -> Okay
  • right stick: up/down -> Not working -> ???

Gamepad:

  • left stick: left/right -> Not working -> ???
  • right stick: RT is R and LT is Z -> ???

Considering implementing left/right stick i would probably start with https://github.com/controlwear/virtual-joystick-android and work from there, regarding the actual design maybe something like this:

gamepadsketch

9000 hours in MSPaint 🤣

@teamclouday
Copy link
Owner

In fact the three modes on the Android app are using the same mapping.
If you would like to press/trigger a certain input key for mapping in applications like RPCS3 or steam, you could use the controller configuration on desktop app:

image

And thanks for sharing the android virtual joystick and creating a design in MSPaint! I really like the design!
I'll try to spend some time on this app in the following weeks and implement it👍

@teamclouday teamclouday added the enhancement New feature or request label Oct 31, 2022
@defkev
Copy link
Author

defkev commented Oct 31, 2022

Okay nvm, if i use the Map Controller Buttons window to map the right stick in RPCS3 it becomes:

up/down -> U+/- -> Ry in vJoyMonitor
left/right -> V-/+ -> Rx in vJoyMonitor

Edit: Forgot screenshot
androidsteering2

@teamclouday
Copy link
Owner

up/down -> U+/- -> Ry in vJoyMonitor
left/right -> V-/+ -> Rx in vJoyMonitor

Yep it looks correct

@teamclouday
Copy link
Owner

Hey I've released version 2.3.0 with your design!
Please let me know if it works well on your phone 🙂

@defkev
Copy link
Author

defkev commented Nov 7, 2022

This works great so far, the scaling could definitely be improved, lots of empty space on my screen 😄

Screenshot_20221107-022521_Trebuchet

Tho its one of the better controller emulator i have tested over the past week, easy setup and works out of the box.

Consider putting it on F-Droid so more people can see it:
https://f-droid.org/docs/Submitting_to_F-Droid_Quick_Start_Guide/

Cheers

@defkev defkev closed this as completed Nov 7, 2022
@teamclouday
Copy link
Owner

Awesome! Yeah I need to take some time to learn how to fit different Android screen DPIs.
Thanks for suggesting F-Droid! I'll learn to use it 🙂

@teamclouday
Copy link
Owner

Btw, I've just updated the Android layout. Hopefully the scaling is better now

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

No branches or pull requests

2 participants