TiManGames / AmnesiaTheDarkDescent

GNU General Public License v3.0
30 stars 8 forks source link

Feature: use system mouse instead of a virtual one #14

Closed jkulawik closed 1 month ago

jkulawik commented 1 month ago

The virtual cursor lags behind the actual one, making for a sloppy experience.

Unfortunately editor tools are also affected by this lagginess, so the logic which updates the virtual mouse position could be improved anyway, even when not using it.

Working on this on the editors-cpp11 branch.

jkulawik commented 1 month ago

Implemented the basic changes for this and seems to work pretty well, but the menu widgets don't work when the virtual cursor isn't being drawn.

image

All 4 menu widgets in this screenshots are affected; this happens in every editor too.

jkulawik commented 1 month ago

Should be fixed now; cWidgetMenuItem::OnMouseMove was checking if the virtual mouse is being drawn

jkulawik commented 1 month ago

The tool / edit mode lag is a complex issue which would require a fair lot of profiling and general knowledge about the codebase which we don't have at the moment, so closing this now.