py-sdl / py-sdl2

Python ctypes wrapper around SDL2
Other
303 stars 49 forks source link

[regression] SDL_WINDOW_INPUT_GRABBED is no longer exported as of 0.9.9 #195

Closed rollcat closed 2 years ago

rollcat commented 3 years ago

What doesn't work?

Importing the constant SDL_WINDOW_INPUT_GRABBED is no longer possible as of 0.9.9; it was possible in 0.9.8.

How To Reproduce

from sdl2 import SDL_WINDOW_INPUT_GRABBED

My test environment:

docker run -ti --rm alpine:latest
apk add py3-pip ipython sdl2
pip install pysdl2==0.9.9  # or 0.9.8, to verify that it's still working
ipython
import sdl2
from sdl2 import SDL_WINDOW_INPUT_GRABBED

Tested platforms:

a-hurst commented 3 years ago

Oof, my bad. Thanks for the bug report! I'll fix this properly, but in the meantime you should be able to use SDL_WINDOW_MOUSE_GRABBED to achieve the same thing in pysdl2 0.9.9.

a-hurst commented 2 years ago

@rollcat Sorry for the delay, this should be fixed as of https://github.com/marcusva/py-sdl2/commit/b4f90ca7e59c6d5ccefed0c063286fca35279208 !