mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-24 01:00:25 +00:00
better keyboard panning
This commit is contained in:
parent
051055922b
commit
29afe683c3
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user