Player input buttons

From ZDoom Wiki
Jump to navigation Jump to search
Internal name in ZScript or ACS Corresponding action
BT_FORWARD Walk forward
BT_BACK Walk backward
BT_LEFT Turn left
BT_RIGHT Turn right
BT_MOVELEFT Strafe left
BT_MOVERIGHT Strafe right
BT_ATTACK Fire primary
BT_ALTATTACK Fire secondary
BT_USE Use/Open
BT_JUMP Jump
BT_CROUCH Crouch
BT_TURN180 180-degree turn
BT_RELOAD Reload weapon
BT_ZOOM Zoom weapon
BT_SPEED Run/walk modifier
BT_RUN Run/walk state
BT_STRAFE Strafe modifier
BT_LOOKUP Look up (Keyboard)
BT_LOOKDOWN Look down (Keyboard)
BT_MOVEUP Swim/fly upward
BT_MOVEDOWN Swim/fly downward
BT_SHOWSCORES Show multiplayer scoreboard
BT_USER1 User-defined button 1
BT_USER2 User-defined button 2
BT_USER3 User-defined button 3
BT_USER4 User-defined button 4

BT_RUN reflects the running/walking state, not merely whether the speed button is pressed or not like the case with BT_SPEED. This distinction becomes evident when autorun is involved.

Action State BT_SPEED BT_RUN
Speed button not pressed; autorun disabled Walking Not set Not set
Speed button pressed; autorun disabled Running Set Set
Speed button not pressed; autorun enabled Running Not set Set
Speed button pressed; autorun enabled Walking Set Not set