File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -855,7 +855,7 @@ void control_update(s_playercontrols ** playercontrols, int numplayers)
855855
856856 k = 0 ;
857857
858- for (i = 0 ; i < JOY_MAX_INPUTS ;i ++ )
858+ for (i = 0 ; i < JOY_MAX_INPUTS ; i ++ )
859859 {
860860 t = pcontrols -> settings [i ];
861861 if (t >= SDLK_FIRST && t < SDLK_LAST ){
@@ -864,8 +864,10 @@ void control_update(s_playercontrols ** playercontrols, int numplayers)
864864 }
865865
866866 //White Dragon: Set input from default keys overriding previous keys
867- if (player <= 0 ) {
868- for (i = 0 ;i < JOY_MAX_INPUTS ;i ++ )
867+ //Default keys are available just if no configured keys are pressed!
868+ if (player <= 0 && !k )
869+ {
870+ for (i = 0 ; i < JOY_MAX_INPUTS ; i ++ )
869871 {
870872 t = default_control .settings [i ];
871873 if (t >= SDLK_FIRST && t < SDLK_LAST ){
@@ -876,7 +878,7 @@ void control_update(s_playercontrols ** playercontrols, int numplayers)
876878
877879 if (usejoy )
878880 {
879- for (i = 0 ; i < JOY_MAX_INPUTS ; i ++ )
881+ for (i = 0 ; i < JOY_MAX_INPUTS ; i ++ )
880882 {
881883 t = pcontrols -> settings [i ];
882884 if (t >= JOY_LIST_FIRST && t <= JOY_LIST_LAST )
You can’t perform that action at this time.
0 commit comments