This repository has been archived by the owner. It is now read-only.
Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Fixed bug 1882 - SDL_GetKeyboardState should return const.
Yuri K. Schlesner The array returned by SDL_GetKeyboardState is also used internally by SDL to keep track of pressed/released keys and must not be modified, lest weird behaviour occurs. Because of this I believe it's return type should be changed to return a const pointer, which will provide a code indication of that fact.
- Loading branch information
Showing
with
3 additions
and 3 deletions.
- +2 −2 include/SDL_keyboard.h
- +1 −1 src/events/SDL_keyboard.c