BindBC / bindbc-sdl

Static & dynamic D bindings to SDL and the SDL_* libraries, compatible with BetterC, @nogc, and nothrow.
Boost Software License 1.0
86 stars 24 forks source link

change SDL_KeyCode back to int instead of uint #57

Closed Moth-Tolias closed 1 year ago

Moth-Tolias commented 1 year ago

the original source defines SDL_KeyCode as a signed 32-bit integer: https://github.com/libsdl-org/SDL/blob/SDL2/include/SDL_keycode.h#L45

the modification of SDL_KeyCode to uint broke the api. this commit reverts that change.

ichordev commented 1 year ago

Thank you!