py-sdl / py-sdl2

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

add new API and hints in SDL 2.26.0 #252

Closed multiSnow closed 2 years ago

multiSnow commented 2 years ago

PR Description

add new API and hints from https://github.com/libsdl-org/SDL/releases/tag/release-2.26.0

Merge Checklist

a-hurst commented 2 years ago

@multiSnow This is great, thank you so much for this! It's been a busy few weeks and I've haven't been able to make time to do this myself, so I really appreciate the effort.

Looking at the SDL2 changelog, I noticed that 2.26 adds a bunch of new hints for different things (e.g. SDL_HINT_JOYSTICK_HIDAPI_XBOX_360). Would you be willing to add these to sdl2/hints.py? Once that's done I'll add some brief tests to the test suite for the new bindings and get this merged. Also, feel free to add yourself to the AUTHORS.txt file now that you're a contributor!

a-hurst commented 2 years ago

I'm going to merge this into my own 2.26.0 branch to add a few more odds and ends before merging into main (e.g. event structure changes in 2.26.0, some unit tests for the bindings), but that should be short work with everything you've already done. Thanks again for the PR!