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

Right analog stick emulation #19977

Open
2 tasks done
NickStrupat opened this issue Feb 13, 2025 · 2 comments
Open
2 tasks done

Right analog stick emulation #19977

NickStrupat opened this issue Feb 13, 2025 · 2 comments
Labels
Feature Request Input/Controller Input and controller issues
Milestone

Comments

@NickStrupat
Copy link

What should happen

Many games use the shape buttons (triangle, square, etc.) on the right in place of the non-existent right analog stick on the PSP. Currently, we can map the right stick axes to those buttons, but it only provides a simple, all-or-nothing mapping.

It would be awesome if the analog signal from the right stick could trigger the right shape buttons based on how much the stick is pushed.

So for example, if the analog stick were pushed slightly to the left, PPSSPP would send to the game a quick tap of the square button every 50ms or so. As the stick is pushed further to the left, PPSSPP would lengthen the amount of the 50ms cycle that the square button would be depressed.

What do you folks think?

Who would this benefit

Players of games that benefit from right analog stick controls.

Platform (if relevant)

None

Games this would be useful in

Call of Duty, Syphon Filter, Star Wars Battlefront, etc.

Other emulators or software with a similar feature

No response

Checklist

@hrydgard
Copy link
Owner

Oh, basically converting the analog value to PWM and feeding that into the button.

It's a reasonable idea, that would work differently well depending on the game, but I'm sure it would work okay on some.

A little tricky to implement but of course doable, the trickiest part is probably coming up with understandable UI for setting this up, especially if we want it to work both from touch screen analog sticks and from joystick analog input...

@hrydgard hrydgard added Feature Request Input/Controller Input and controller issues labels Feb 13, 2025
@hrydgard hrydgard added this to the v1.20 milestone Feb 13, 2025
@the16bitgamer
Copy link

I will add to this, the current mapping for the right analog stick on face button mapping appears to only activate around the 80-100% mark. So if you were to use it for camera inputs, and wanted to press Triangle and Square at the same time, the dead-zone will not permit it.

I believe adding either a dead zone adjuster for the right analog stick, or re-using the touch input right analog stick menu and have it map to the right analog stick would be a sufficient work around.

Bonus points if you add in button rapid fire on the button inputs to simulate analog movement.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Request Input/Controller Input and controller issues
Projects
None yet
Development

No branches or pull requests

3 participants