Skip to content

Commit

Permalink
re-established the correct order of things
Browse files Browse the repository at this point in the history
  • Loading branch information
Vincent-FK committed Jun 18, 2021
1 parent 0fcc268 commit 751cf64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion RetroFE/Source/RetroFE.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1192,7 +1192,7 @@ RetroFE::RETROFE_STATE RetroFE::processUserInput( Page *page )
// ,-* ,-* ,-*
// (_) (_) (_)
#define KONAMI_CODE_SIZE 10
static const int konami_code_sdl[KONAMI_CODE_SIZE]={SDLK_u,SDLK_u,SDLK_d,SDLK_d,SDLK_l,SDLK_l,SDLK_r,SDLK_r,SDLK_b,SDLK_a};
static const int konami_code_sdl[KONAMI_CODE_SIZE]={SDLK_u,SDLK_u,SDLK_d,SDLK_d,SDLK_l,SDLK_r,SDLK_l,SDLK_r,SDLK_b,SDLK_a};
static uint8_t idx_konami_code = 0;
if(e.type==SDL_KEYDOWN && e.key.keysym.sym != konami_code_sdl[idx_konami_code]) idx_konami_code=0;
if(e.type==SDL_KEYDOWN && e.key.keysym.sym == konami_code_sdl[idx_konami_code]) idx_konami_code++;
Expand Down

0 comments on commit 751cf64

Please sign in to comment.