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

InputCommon: Detect when evdev exposes acceleration/gyroscope data. #8460

Merged
merged 1 commit into from Nov 9, 2019

Conversation

@jordan-woyak
Copy link
Member

jordan-woyak commented Nov 9, 2019

evdev devices with motion data are detectable be checking for INPUT_PROP_ACCELEROMETER.

Each axis then provides a resolution property to get the correct unit scaling.

This makes configuration much easier and there is no longer a need to manually scale values using input expression multiplication.

There doesn't seem to be consistent orientations across devices so I've been forced to use "Accel X"/"Gyro X" naming instead of the "Gyro Pitch Up" names our DSU client uses.

I've eliminated redundant GRAVITY_ACCELERATION constants.

@jordan-woyak jordan-woyak force-pushed the jordan-woyak:evdev-motion-data branch from 5baaa73 to 1180c23 Nov 9, 2019
@leoetlino leoetlino merged commit eebc64a into dolphin-emu:master Nov 9, 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:evdev-motion-data branch Nov 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants
You can’t perform that action at this time.