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.
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.