Skip to content

Add support for the sensor API #1123

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

Closed
Yamakaky opened this issue Jul 18, 2021 · 1 comment · Fixed by #1131
Closed

Add support for the sensor API #1123

Yamakaky opened this issue Jul 18, 2021 · 1 comment · Fixed by #1131

Comments

@Yamakaky
Copy link

See https://wiki.libsdl.org/CategorySensor. Its main use is to access the accelerometer and gyroscope on switch and ps4/5 controllers.

@Cobrand
Copy link
Member

Cobrand commented Jul 18, 2021

This is incredibly close to https://wiki.libsdl.org/CategoryJoystick , which is implemented here https://github.com/Rust-SDL2/rust-sdl2/blob/master/src/sdl2/joystick.rs for anyone interested.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants