mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-25 13:31:37 +00:00
- transmit the actual run mode in BT_RUN, because BT_SPEED was poorly designed.
This commit is contained in:
parent
f4c5a25a52
commit
399388d177
3 changed files with 5 additions and 0 deletions
|
@ -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.
|
||||
|
|
|
@ -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];
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue