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

DolphinQt: Add accelerometer/gyroscope mapping indicators. #8454

Merged
merged 2 commits into from Nov 10, 2019

Conversation

@jordan-woyak
Copy link
Member

jordan-woyak commented Nov 6, 2019

These indicators will help in configuration and checking for proper orientation/scale.
It is currently a mystery if things are correct until you get in-game.

This is less of an issue when using the "Cemuhook" input backend (which has nicely named inputs) but more of an issue in Linux where evdev exposes the raw data.

Demonstration:
https://giant.gfycat.com/AllMediumFrillneckedlizard.webm
I've since added text to the gyroscope indicator with the red dot's angle from the upright position.

The accelerometer indicator shows the perceived orientation and g-force.
The colored dots provide a frame of reference.

The gyroscope indicator rotates in real time with the controller.
The red and blue dots are oriented differently so all three rotational axes can be followed and calibrated.
When the controller is stable for a second the gyroscope indicator resets.

@jordan-woyak jordan-woyak force-pushed the jordan-woyak:motion-input-indicators branch from 75dfbba to 41aa5c1 Nov 6, 2019
@jordan-woyak jordan-woyak force-pushed the jordan-woyak:motion-input-indicators branch from 41aa5c1 to 0d28049 Nov 7, 2019
@barolo

This comment has been minimized.

Copy link

barolo commented Nov 8, 2019

Can we get this merged? I'm trying to test DS4 gyro/accel and it' extremely confusing

@jordan-woyak jordan-woyak force-pushed the jordan-woyak:motion-input-indicators branch from 0d28049 to 8ef25dd Nov 9, 2019
@delroth delroth merged commit 066012b into dolphin-emu:master Nov 10, 2019
10 checks passed
10 checks passed
default Very basic checks passed, handed off to Buildbot.
Details
lint Build succeeded on builder lint
Details
pr-android Build succeeded on builder pr-android
Details
pr-deb-dbg-x64 Build succeeded on builder pr-deb-dbg-x64
Details
pr-deb-x64 Build succeeded on builder pr-deb-x64
Details
pr-freebsd-x64 Build succeeded on builder pr-freebsd-x64
Details
pr-osx-x64 Build succeeded on builder pr-osx-x64
Details
pr-ubu-x64 Build succeeded on builder pr-ubu-x64
Details
pr-win-dbg-x64 Build succeeded on builder pr-win-dbg-x64
Details
pr-win-x64 Build succeeded on builder pr-win-x64
Details
@jordan-woyak jordan-woyak deleted the jordan-woyak:motion-input-indicators branch Nov 10, 2019
@Miksel12

This comment has been minimized.

Copy link
Contributor

Miksel12 commented Nov 11, 2019

This doesn't seem to work with my DS4 with DSU, in the configure input screen the accel and gyro values are non zero and seemingly correct but the indicators show nothing.

@jordan-woyak

This comment has been minimized.

Copy link
Member Author

jordan-woyak commented Nov 11, 2019

This doesn't seem to work with my DS4 with DSU, in the configure input screen the accel and gyro values are non zero and seemingly correct but the indicators show nothing.

Yes, sorry, I based this on PR #8456 which will fix the problem.
A current workaround is enabling "Background Input".

Edit: It's fixed now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
5 participants
You can’t perform that action at this time.