nuklear icon indicating copy to clipboard operation
nuklear copied to clipboard

Fullscreen mouse offset

Open spudgy opened this issue 5 years ago • 1 comments

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

spudgy avatar Mar 16 '19 03:03 spudgy

My guess is it has to do with the Window Tittle offsets, somehow WS_EX_LAYOUTRTL solves it.

spudgy avatar Mar 16 '19 03:03 spudgy