Skip to content

Commit

Permalink
Follow-up work on #142.
Browse files Browse the repository at this point in the history
Joysticks have their own set of {KEY,MOD,JOY}, what means that setting
everything for MOD=0 is a mistake. We need to deal only with keyboard
mappings here.
  • Loading branch information
denisfa committed May 23, 2019
1 parent 500506c commit 3d57750
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wx/panel.cpp
Expand Up @@ -1184,7 +1184,7 @@ static bool process_key_press(bool down, int key, int mod, int joy = 0)
break;
#endif
default:
mod = 0;
if (joy == 0) mod = 0;
break;
}

Expand Down

0 comments on commit 3d57750

Please sign in to comment.