InputMgr::SetInputMode
Defined in:
Sets the current mode in which the Input Manager processes input events.
C4Input.hPrototype
void SetInputMode(InputMode mode);
Parameters
mode |
The new input mode. |
Description
The SetInputMode function sets the current mode in which the Input Manager processes input events from various types of input devices. The mode parameter can be a combination (through logical OR) of the following constants.
kInputInactive |
No input is processed by the Input Manager. This flag should be specified by itself to disable the Input Manager. |
kInputMouseActive |
Mouse input is processed by the Input Manager. |
kInputKeyboardActive |
Keyboard input is processed by the Input Manager. |
kInputGameActive |
Joystick and game controller input is processed by the Input Manager. |
kInputAllActive |
All input is processed by the Input Manager. Specifying this flag is equivalent to specifying kInputMouseActive, kInputKeyboardActive, and kInputGameActive.
|
The default input mode is
kInputInactive when the Input Manager is initialized.
See Also
