kitao / pyxel

A retro game engine for Python
MIT License
15.31k stars 847 forks source link

warp_mouse() #543

Closed paul59 closed 4 months ago

paul59 commented 5 months ago

This doesn't seem to work for me on Linux. I have

pyxel.init(320, 200, fps = 60, quit_key = py.KEY_ESCAPE)

but warp_mouse (160, 100) doesn't put the cursor at screen centre - if that's what it's supposed to do? It looks as if it's placing it at window pixel (160, 100) instead ie using screen resolution.

kitao commented 4 months ago

I fixed the related code in the latest Pyxel. Could you try 2.1.4?

paul59 commented 4 months ago

Yep, that's does it thank you :smile: