Open VantaTree opened 1 year ago
Thhat could be an internal SDL problem or missing setting when using GL/GLES contexts, i have the exact same problem in Harfang3D which displays scaled and uses mouse from SDL2 (eg when used on wasm)
From a working Harfang fix ( handling mouse x/y ratio changes manually) : it seems that scaling event are not dispatched to SDL mouse handling code and it stays using original framebuffer size. Or maybe the SDL mouse handling code just ignore window viewport and size.
Windows 11 SDL 2.0.22 Python 3.11.2 pygame-ce==2.1.3
In the above example, the mouse pos isn't between (0, 0) and (400, 400). It's much Higher (815, 815). and (1535, 863) with
FULLSCREEN
flag.