[Ohrrpgce] [ohrrpgce/ohrrpgce] Change mouse click/touch behavior for single-click navigation around the map (#27)

James Paige notifications at github.com
Sat Aug 24 14:12:26 PDT 2019


Right now mouse map navigation works like this:

* As long as the left button is down, the tile under the cursor will be targeted

This is fine for holding down the mouse button as you traverse long distances, but it is not so good for the more common case of touching to go exactly to a specific tile that you can currently see on screen. As soon as you start moving, the screen (usually) starts scrolling, so by the time you release the mouse button, the cursor is often overing over a different tile than the one you first clicked on.

Here is the new behavior I propose:

* When the mouse first clicks down target walking to that tile.
* Then there should be a delay where the mouse state is ignored (I'll probably start with half a second, and tune it. I might also make it customizable)
* After the delay is over, then walk targeting will continue working as it does now, re-targeting on whatever tile is under the click each tick

I think this gives us best of both worlds. You can accurately click a tile to walk to it, and you can still hold down the click to go long distances conveniently



-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/ohrrpgce/ohrrpgce/issues/27
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.motherhamster.org/pipermail/ohrrpgce-motherhamster.org/attachments/20190824/dca8f111/attachment.html>


More information about the Ohrrpgce mailing list