1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-23 01:47:39 +00:00

camera rotation by device orientation in 3D

This commit is contained in:
Zeno Rogue
2019-06-28 09:56:39 +02:00
parent 93813f4cf1
commit 4a65e11c1d
3 changed files with 33 additions and 2 deletions

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) {