--- wl_agent.c.old Sat Aug 18 17:53:38 2001 +++ wl_agent.c Fri Nov 30 00:33:24 2001 @@ -159,7 +159,9 @@ // // side to side move // - if (buttonstate[bt_strafe]) + if (buttonstate[bt_strafe] || + buttonstate[bt_strafe_left] || + buttonstate[bt_strafe_right]) { // // strafing --- wl_def.h.old Sat Aug 18 17:53:38 2001 +++ wl_def.h Thu Nov 29 23:38:08 2001 @@ -645,7 +645,7 @@ } PACKED objtype; -#define NUMBUTTONS 8 +#define NUMBUTTONS 10 enum { bt_nobutton=-1, bt_attack=0, @@ -655,7 +655,9 @@ bt_readyknife, bt_readypistol, bt_readymachinegun, - bt_readychaingun + bt_readychaingun, + bt_strafe_left, + bt_strafe_right }; --- wl_play.c.old Sat Aug 18 17:53:38 2001 +++ wl_play.c Fri Nov 30 01:32:05 2001 @@ -50,7 +50,8 @@ int joystickport; int dirscan[4] = {sc_UpArrow,sc_RightArrow,sc_DownArrow,sc_LeftArrow}; int buttonscan[NUMBUTTONS] = - {sc_Control,sc_Alt,sc_RShift,sc_Space,sc_1,sc_2,sc_3,sc_4}; + {sc_Control,sc_Alt,sc_RShift,sc_Space,sc_1,sc_2,sc_3,sc_4, + sc_Z, sc_X}; int buttonmouse[4]={bt_attack,bt_strafe,bt_use,bt_nobutton}; int buttonjoy[4]={bt_attack,bt_strafe,bt_use,bt_run}; @@ -337,10 +338,12 @@ controly -= RUNMOVE*tics; if (Keyboard[dirscan[di_south]]) controly += RUNMOVE*tics; - if (Keyboard[dirscan[di_west]]) + if (Keyboard[dirscan[di_west]] || + buttonstate[bt_strafe_left]) controlx -= RUNMOVE*tics; - if (Keyboard[dirscan[di_east]]) - controlx += RUNMOVE*tics; + if (Keyboard[dirscan[di_east]] || + buttonstate[bt_strafe_right]) + controlx += RUNMOVE*tics; } else { @@ -348,9 +351,11 @@ controly -= BASEMOVE*tics; if (Keyboard[dirscan[di_south]]) controly += BASEMOVE*tics; - if (Keyboard[dirscan[di_west]]) + if (Keyboard[dirscan[di_west]] || + buttonstate[bt_strafe_left]) controlx -= BASEMOVE*tics; - if (Keyboard[dirscan[di_east]]) + if (Keyboard[dirscan[di_east]] || + buttonstate[bt_strafe_right]) controlx += BASEMOVE*tics; } }