Dawoodoz / DFPSR

Fast realtime softare rendering library for C++14 using SSE/AVX/NEON. 2D, 3D and isometric rendering with minimal system dependencies.
https://dawoodoz.com/dfpsr.html
78 stars 6 forks source link

Implemented a method for setting the cursor position #66

Closed Dawoodoz closed 1 year ago

Dawoodoz commented 1 year ago

Made a wrapper function that is pixel-exact and corresponding to client area coordinates just like mouse-move events. It will however give undefined behavior if used to move the cursor to or from a location outside of the given window's client area. One can also not assume that the triggered mouse event will be the next input, because there may already exist old events in the queue even if it is added instantly.

This method is likely to change if I find a better way of implementing it, so I gave it a precondition to stay within the client area.