X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=blobdiff_plain;f=src%2Fgame_em%2Finput.c;h=b8e2e663b1f5f96df79356adc6dea8b8220ba33e;hp=b2c79ac7f79e475cb4f34214bd0e897f4d6a0c62;hb=520916c89d7d96944bf3d66e3caa5afd840df74c;hpb=c138430b14041bf340d371fd3cd27e727c4c50c1 diff --git a/src/game_em/input.c b/src/game_em/input.c index b2c79ac7..b8e2e663 100644 --- a/src/game_em/input.c +++ b/src/game_em/input.c @@ -119,6 +119,9 @@ void readjoy(byte action, struct PLAYER *ply) int north = 0, east = 0, south = 0, west = 0; int snap = 0, drop = 0; + if (game_em.use_single_button && action & (JOY_BUTTON_1 | JOY_BUTTON_2)) + action |= JOY_BUTTON_1 | JOY_BUTTON_2; + if (action & JOY_LEFT) west = 1;