mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-25 09:30:35 +00:00
solmul when mousewheel-scroll
This commit is contained in:
parent
481b1de5f9
commit
52f19a26a8
@ -286,8 +286,8 @@ EX bool smooth_scrolling = false;
|
|||||||
EX void handlePanning(int sym, int uni) {
|
EX void handlePanning(int sym, int uni) {
|
||||||
if(mousepan && dual::split([=] { handlePanning(sym, uni); })) return;
|
if(mousepan && dual::split([=] { handlePanning(sym, uni); })) return;
|
||||||
if(GDIM == 3) {
|
if(GDIM == 3) {
|
||||||
if(sym == PSEUDOKEY_WHEELUP) View = cpush(2, -0.05*shiftmul) * View, didsomething = true, playermoved = false;
|
if(sym == PSEUDOKEY_WHEELUP) View = solmul(cpush(2, -0.05*shiftmul), View), didsomething = true, playermoved = false;
|
||||||
if(sym == PSEUDOKEY_WHEELDOWN) View = cpush(2, 0.05*shiftmul) * View, didsomething = true, playermoved = false;
|
if(sym == PSEUDOKEY_WHEELDOWN) View = solmul(cpush(2, 0.05*shiftmul), View), didsomething = true, playermoved = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(rug::rugged || smooth_scrolling) {
|
if(rug::rugged || smooth_scrolling) {
|
||||||
|
Loading…
Reference in New Issue
Block a user