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

RIGHTY not working with cheap chinese Playstation-like gamepads #35

Open
raullapeira opened this issue Jan 2, 2022 · 5 comments
Open

Comments

@raullapeira
Copy link

raullapeira commented Jan 2, 2022

When moving the right gamepad analog pad vertically no value is generated using the following line of code:

ControllerIndex controller...
controller.getAxisState(ControllerAxis.RIGHTY);

Any idea on how to solve it or a workaround?.

@XenoAmess
Copy link
Contributor

XenoAmess commented Jan 2, 2022

https://github.com/gabomdq/SDL_GameControllerDB
register it first.
You can read the readme there for how to achieve this.

And manually load the modified db file in your program.

@raullapeira
Copy link
Author

raullapeira commented Jan 2, 2022

This works with Jamepad also?.

Thanks a lot in any case, do you think i will need to change my code also, or is it only a configuration aspect?.

@XenoAmess
Copy link
Contributor

@raullapeira
Hi.

This works with Jamepad also?.

Yes

Thanks a lot in any case, do you think i will need to change my code also, or is it only a configuration aspect?.

I'm not that familiar with Jamepad so I don't know if he provide a function for you to dynamic add that source.

image

but I managed where it load this file.

you can start tracking here.

good luck.

@raullapeira
Copy link
Author

Thanks a lot, really useful

@raullapeira
Copy link
Author

raullapeira commented Jan 2, 2022

Guys, this was not really an issue, just that I was using an old version that did not even have the gamecontrollerdb.txt file. I got the last Jamepad version, the last sld2gdx version and it was just a question of building a custom mapping with GamepadTool.win.latest now it works. The string that worked for me is:

03000000790000000600000000000000,CheapAliexpressGamepad,platform:Windows,a:b2,b:b1,x:b3,y:b0,back:b8,start:b9,leftstick:b10,rightstick:b11,leftshoulder:b4,rightshoulder:b5,dpup:h0.1,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,leftx:a0,lefty:a1,rightx:a2,righty:a3,lefttrigger:b6,righttrigger:b7,

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