Qt: Add controller gyroscope

This commit is contained in:
wheremyfoodat 2024-08-14 22:57:45 +03:00
parent d208c24c0c
commit 520e00c553
3 changed files with 30 additions and 1 deletions

View file

@ -289,7 +289,7 @@ void FrontendSDL::run() {
case SDL_CONTROLLERSENSORUPDATE: {
if (event.csensor.sensor == SDL_SENSOR_GYRO) {
glm::vec3 rotation = Gyro::SDL::convertRotation({
auto rotation = Gyro::SDL::convertRotation({
event.csensor.data[0],
event.csensor.data[1],
event.csensor.data[2],