Skip to content

Commit

Permalink
Updated to the latest version of SDL
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Jun 22, 2024
1 parent f4e942b commit 60013b1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/showanim.c
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ int main(int argc, char *argv[])
while ( SDL_PollEvent(&event) ) {
switch (event.type) {
case SDL_EVENT_KEY_UP:
switch (event.key.keysym.sym) {
switch (event.key.key) {
case SDLK_LEFT:
if ( i > 1 ) {
i -= 2;
Expand Down
2 changes: 1 addition & 1 deletion examples/showimage.c
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ int main(int argc, char *argv[])
while ( SDL_PollEvent(&event) ) {
switch (event.type) {
case SDL_EVENT_KEY_UP:
switch (event.key.keysym.sym) {
switch (event.key.key) {
case SDLK_LEFT:
if ( i > 1 ) {
i -= 2;
Expand Down
2 changes: 1 addition & 1 deletion external/SDL
Submodule SDL updated 143 files

0 comments on commit 60013b1

Please sign in to comment.