Skip to content

Commit

Permalink
removed +button4 cmd, fixes #6
Browse files Browse the repository at this point in the history
  • Loading branch information
JanSimek committed Mar 12, 2012
1 parent 267dc4d commit b81ed05
Showing 1 changed file with 1 addition and 26 deletions.
27 changes: 1 addition & 26 deletions src/client/cl_input.c
Expand Up @@ -377,13 +377,7 @@ void IN_Button4Up(void)
{
IN_KeyUp(&kb[KB_BUTTONS4]);
}
// void IN_Button5Down(void) {IN_KeyDown(&kb[KB_BUTTONS5]);}
// void IN_Button5Up(void) {IN_KeyUp(&kb[KB_BUTTONS5]);}

// void IN_Button6Down(void) {IN_KeyDown(&kb[KB_BUTTONS6]);}
// void IN_Button6Up(void) {IN_KeyUp(&kb[KB_BUTTONS6]);}

// Rafael activate
void IN_ActivateDown(void)
{
IN_KeyDown(&kb[KB_BUTTONS6]);
Expand All @@ -392,7 +386,6 @@ void IN_ActivateUp(void)
{
IN_KeyUp(&kb[KB_BUTTONS6]);
}
// done.

void IN_SprintDown(void)
{
Expand Down Expand Up @@ -1321,43 +1314,25 @@ void CL_InitInput(void)

Cmd_AddCommand("+attack", IN_Button0Down); // ---- id (primary firing)
Cmd_AddCommand("-attack", IN_Button0Up);
// Cmd_AddCommand ("+button0", IN_Button0Down);
// Cmd_AddCommand ("-button0", IN_Button0Up);

Cmd_AddCommand("+button1", IN_Button1Down);
Cmd_AddCommand("-button1", IN_Button1Up);

Cmd_AddCommand("+useitem", IN_UseItemDown);
Cmd_AddCommand("-useitem", IN_UseItemUp);

Cmd_AddCommand("+salute", IN_Button3Down); //----(SA) salute
Cmd_AddCommand("+salute", IN_Button3Down);
Cmd_AddCommand("-salute", IN_Button3Up);
// Cmd_AddCommand ("+button3", IN_Button3Down);
// Cmd_AddCommand ("-button3", IN_Button3Up);

Cmd_AddCommand("+button4", IN_Button4Down);
Cmd_AddCommand("-button4", IN_Button4Up);
//Cmd_AddCommand ("+button5", IN_Button5Down);
//Cmd_AddCommand ("-button5", IN_Button5Up);

//Cmd_AddCommand ("+button6", IN_Button6Down);
//Cmd_AddCommand ("-button6", IN_Button6Up);

// Rafael Activate
Cmd_AddCommand("+activate", IN_ActivateDown);
Cmd_AddCommand("-activate", IN_ActivateUp);
// done.

// Rafael Kick
// Arnout: now prone
Cmd_AddCommand("+prone", IN_ProneDown);
Cmd_AddCommand("-prone", IN_ProneUp);
// done

Cmd_AddCommand("+sprint", IN_SprintDown);
Cmd_AddCommand("-sprint", IN_SprintUp);


// wolf buttons
Cmd_AddCommand("+attack2", IN_Wbutton0Down); //----(SA) secondary firing
Cmd_AddCommand("-attack2", IN_Wbutton0Up);
Expand Down

0 comments on commit b81ed05

Please sign in to comment.