Extbits: Difference between revisions
Jump to navigation
Jump to search
Hendricks266 (talk | contribs) mNo edit summary |
m not sure what the internal name is, but I've tested and found that 64 is set when the new alt fire key is pressed |
||
Line 8: | Line 8: | ||
define INPUT_TURN_LEFT 16 | define INPUT_TURN_LEFT 16 | ||
define INPUT_TURN_RIGHT 32 | define INPUT_TURN_RIGHT 32 | ||
define INPUT_ALT_FIRE 64 | |||
[[Category:Bitfields]] | [[Category:Bitfields]] | ||
[[Category:Input structure members]] | [[Category:Input structure members]] |
Revision as of 01:28, 1 August 2019
The extbits member of the input structure is a bitfield, like bits. The following defines show what these bits indicate:
// extbits define INPUT_MOVE_FORWARD 1 define INPUT_MOVE_BACKWARD 2 define INPUT_STRAFE_LEFT 4 define INPUT_STRAFE_RIGHT 8 define INPUT_TURN_LEFT 16 define INPUT_TURN_RIGHT 32 define INPUT_ALT_FIRE 64