- transmit the actual run mode in BT_RUN, because BT_SPEED was poorly designed.

This commit is contained in:
Christoph Oelckers 2020-09-26 22:26:26 +02:00
parent f4c5a25a52
commit 399388d177
3 changed files with 5 additions and 0 deletions

View File

@ -90,6 +90,8 @@ typedef enum
BT_USER2 = 1<<22,
BT_USER3 = 1<<23,
BT_USER4 = 1<<24,
BT_RUN = 1<<25,
} buttoncode_t;
// Called by IO functions when input is detected.

View File

@ -691,6 +691,7 @@ void G_BuildTiccmd (ticcmd_t *cmd)
if (buttonMap.ButtonDown(Button_MoveDown)) cmd->ucmd.buttons |= BT_MOVEDOWN;
if (buttonMap.ButtonDown(Button_MoveUp)) cmd->ucmd.buttons |= BT_MOVEUP;
if (buttonMap.ButtonDown(Button_ShowScores)) cmd->ucmd.buttons |= BT_SHOWSCORES;
if (speed) cmd->ucmd.buttons |= BT_RUN;
// Handle joysticks/game controllers.
float joyaxes[NUM_JOYAXIS];

View File

@ -821,6 +821,8 @@ enum EButtons
BT_USER2 = 1<<22,
BT_USER3 = 1<<23,
BT_USER4 = 1<<24,
BT_RUN = 1<<25,
};
// Flags for GetAngle