X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=blobdiff_plain;f=src%2Fgame_em%2Finput.c;h=f04718f7e4a5b19000c457551d1355ee342cd2ec;hp=79efd2f93eeceb0379f412e81c1da31930bffcca;hb=73dd81c85be90e466493bcc6f45c402d29bc7f20;hpb=f47cd4b09952aaf95d16542f6b53f2d8bf9e1d7d diff --git a/src/game_em/input.c b/src/game_em/input.c index 79efd2f9..f04718f7 100644 --- a/src/game_em/input.c +++ b/src/game_em/input.c @@ -129,6 +129,7 @@ void readjoy(byte action) if (action & JOY_BUTTON_1) fire = 1; +#if 1 ply1.joy_fire = fire; if (ply1.joy_stick || (north | east | south | west)) { @@ -137,4 +138,14 @@ void readjoy(byte action) ply1.joy_s = south; ply1.joy_w = west; } +#else + ply2.joy_fire = fire; + if (ply2.joy_stick || (north | east | south | west)) + { + ply2.joy_n = north; + ply2.joy_e = east; + ply2.joy_s = south; + ply2.joy_w = west; + } +#endif }