Browse Source

reset gyro drift when gyro is turned off (#1542)

pull/1557/head
Adam Bird 6 months ago committed by GitHub
parent
commit
b4740d131f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      libultraship/libultraship/SDLController.cpp

4
libultraship/libultraship/SDLController.cpp

@ -171,6 +171,10 @@ namespace Ship { @@ -171,6 +171,10 @@ namespace Ship {
getGyroX(virtualSlot) *= gyro_sensitivity;
getGyroY(virtualSlot) *= gyro_sensitivity;
}
else {
getGyroX(virtualSlot) = 0;
getGyroY(virtualSlot) = 0;
}
getPressedButtons(virtualSlot) = 0;

Loading…
Cancel
Save