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

# Conflicts:
#	src/g_game.cpp
This commit is contained in:
Christoph Oelckers 2020-09-26 22:26:26 +02:00 committed by drfrag
parent 7c7f3f04ae
commit de1302db7b
3 changed files with 5 additions and 0 deletions

View file

@ -115,6 +115,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

@ -695,6 +695,7 @@ void G_BuildTiccmd (ticcmd_t *cmd)
if (Button_MoveDown.bDown) cmd->ucmd.buttons |= BT_MOVEDOWN;
if (Button_MoveUp.bDown) cmd->ucmd.buttons |= BT_MOVEUP;
if (Button_ShowScores.bDown) 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