camera rotation by device orientation in 3D

This commit is contained in:
Zeno Rogue
2019-09-12 22:50:08 +02:00
parent 93813f4cf1
commit 4a65e11c1d
3 changed files with 33 additions and 2 deletions
+3
View File
@@ -643,6 +643,9 @@ void mainloopiter() {
View = cspin(0, 2, -mouseaim_x) * cspin(1, 2, -mouseaim_y) * View;
mouseaim_x = mouseaim_y = 0;
#endif
#if CAP_ORIENTATION
apply_orientation();
#endif
}
if(smooth_scrolling && !shmup::on && !rug::rugged) {