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

Gamepad/Joystick implementation #7

Open
nsc-jens opened this issue Jan 21, 2021 · 0 comments
Open

Gamepad/Joystick implementation #7

nsc-jens opened this issue Jan 21, 2021 · 0 comments

Comments

@nsc-jens
Copy link

Hi,

I looked for a forum to bring this up for discussion, but I didn't find one so here goes:

I find the Joystick in the Gamepad Module a bit strange. Or at least the getXaxisData() and getYaxisData() functions. If I move the joystick forward I get values up to 7. This is OK. If I move it backwards I only get -6, not -7 as the documentation states. I guess this is a bug somewhere, but I can work around this. Left and right works as expected.

Now for the tricky part. The joystick is round! This works for the angle-radius functions, but is pretty useless for the Xaxis/Yaxis input since you cannot get full forward at the same time as full right. The only way to get max forward is to keep the joystick dead center. This is not how a joystick usually works, where you can move the joystick to up right corner and get both Y=7 and X=7. The joystick (or control stick on a RC controller) is square.

So my wish is for the app to have a fourth mode, besides "Digital Mode", "Joystick Mode" and "Accelerometer Mode" with a square joystick.

As I didn't find a forum to discuss this in, I don't know if this is the intended behavior. I does make perfect sense for the getAngle() and getRadius() functions I guess. If this indeed the way it is supposed to work you can close this issue immediately. :-)

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

1 participant