Keep Mouse on Screen
Been fiddling around with this again and having an issue.
How do I stop the reticle from going off screen when controlled with the keyboard? Seems like the mouse brain acts a bit funny in that when it's controlled with your mouse it can't go off screen, but when controlled with the arrow keys it can go off screen as far as you want! Anyone know of an easy workaround?
How do I stop the reticle from going off screen when controlled with the keyboard? Seems like the mouse brain acts a bit funny in that when it's controlled with your mouse it can't go off screen, but when controlled with the arrow keys it can go off screen as far as you want! Anyone know of an easy workaround?
Huh, cool; I didn't know that.
You could put some invisible sprites around the screen with touch damage set to -1 and a script to push the cursor back onto the screen. The cursor can't move the pointer in large steps anyway, so a single pixel box should be enough (but more seems safer; you never know what the engine does).
Does using a map screen with no neighboring screens and setting dink_can_walk_off_screen=0 not fix it?
You could put some invisible sprites around the screen with touch damage set to -1 and a script to push the cursor back onto the screen. The cursor can't move the pointer in large steps anyway, so a single pixel box should be enough (but more seems safer; you never know what the engine does).
Does using a map screen with no neighboring screens and setting dink_can_walk_off_screen=0 not fix it?