mirror of
https://github.com/HarbourMasters/Shipwright
synced 2026-05-24 15:21:22 -04:00
reset gyro drift when gyro is turned off (#1542)
This commit is contained in:
@@ -171,6 +171,10 @@ namespace Ship {
|
||||
getGyroX(virtualSlot) *= gyro_sensitivity;
|
||||
getGyroY(virtualSlot) *= gyro_sensitivity;
|
||||
}
|
||||
else {
|
||||
getGyroX(virtualSlot) = 0;
|
||||
getGyroY(virtualSlot) = 0;
|
||||
}
|
||||
|
||||
getPressedButtons(virtualSlot) = 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user