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

Motion controls #1984

Merged
merged 6 commits into from
Jan 1, 2025
Merged

Motion controls #1984

merged 6 commits into from
Jan 1, 2025

Conversation

kalaposfos13
Copy link
Contributor

Very WIP, needs testing for both different games and different controllers.
If a game uses gyro and acceleration data, then we just pass those without problem, but so far, I haven't found how to handle orientation correctly, so for now it is a very basic implementation using the accelerometer to figure out which way is "down".
The code is still in a "just make it work" stage, I'll have to clean it up later. I mostly put this out here so people can test it and give feedback for now.

@kalaposfos13
Copy link
Contributor Author

I finally found something that actually works for calculating orientation and could be easily modified for this use case, but it still requires some tuning to get it right. Apart from that one thing, everything that I wanted to with this PR is ready.

@kalaposfos13 kalaposfos13 marked this pull request as ready for review December 31, 2024 18:32
@georgemoralis
Copy link
Collaborator

looks fine
Fix the clang format issue and i think we can merge this

@georgemoralis georgemoralis self-requested a review January 1, 2025 17:24
@kalaposfos13
Copy link
Contributor Author

Done

@georgemoralis georgemoralis merged commit 15c9bb0 into shadps4-emu:main Jan 1, 2025
9 checks passed
@kalaposfos13 kalaposfos13 deleted the gyro-clean branch January 13, 2025 07:47
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

Successfully merging this pull request may close these issues.

2 participants