Extbits: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
m Spelling error.
m neatness
Line 1: Line 1:
The extbits member of the input structure is a bit-field like [[bits]]. The following defines show what these bits indicate:
The extbits member of the input structure is a bit-field like [[bits]]. The following defines show what these bits indicate:
<pre>
 
define INPUT_MOVE_FORWARD 1
// extbits
define INPUT_MOVE_BACKWARD 2
define INPUT_MOVE_FORWARD             1
define INPUT_STRAFE_LEFT 4
define INPUT_MOVE_BACKWARD             2
define INPUT_STRAFE_RIGHT 8
define INPUT_STRAFE_LEFT               4
define INPUT_TURN_LEFT 16
define INPUT_STRAFE_RIGHT             8
define INPUT_TURN_RIGHT 32
define INPUT_TURN_LEFT               16
</pre>
define INPUT_TURN_RIGHT               32
 
[[Category:Input structure members]]
[[Category:Input structure members]]

Revision as of 16:16, 12 September 2007

The extbits member of the input structure is a bit-field 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