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

better keyboard panning

This commit is contained in:
?
2019-02-25 18:23:55 +01:00
committed by Zeno Rogue
parent 051055922b
commit 29afe683c3

View File

@@ -750,7 +750,7 @@ void handleInput(int delta) {
if(DIM == 2)
View = xpush(-panx * d) * ypush(-pany * d) * spin(panspin * d) * View;
else
View = cspin(0, 2, panx) * cspin(0, 1, pany) * spin(panspin * d) * cpush(2, panmove) * View;
View = cspin(0, 2, panx/10) * cspin(0, 1, pany/10) * spin(panspin * d) * cpush(2, panmove/10) * View;
playermoved = false;
}
#endif