nuklear
nuklear copied to clipboard
Fullscreen mouse offset
If you create a fullscreen DX device and use WH_MOUSE_LL to handle mouse input, unless you set this flag "WS_EX_LAYOUTRTL" you will get bad input offsets when your mouse is near the edges. I am not sure why this happens but I though I should leave a documentation note if anyone bumps around the same error. here is a sample image without WS_EX_LAYOUTRTL: https://puu.sh/D0F5v/db365ef3d5.png
with WS_EX_LAYOUTRTL: https://puu.sh/D0F6G/294e875239.png
My guess is it has to do with the Window Tittle offsets, somehow WS_EX_LAYOUTRTL solves it.