C4 Engine Terathon Software C4 Engine API Documentation

• Input Manager

API Links
Developer Links

class InputMgr

Defined in:  C4Input.h
The Input Manager class.
Definition

class InputMgr : public Manager<InputMgr>

Member Functions
InputMgr::GetFirstDevice Returns the first input device in the Input Manager's device list.
InputMgr::FindDevice Returns the input device having a given name or type.
InputMgr::AddAction Registers an action object with the Input Manager.
InputMgr::RemoveAction Unregisters an action object with the Input Manager.
InputMgr::SetInputMode Sets the current mode in which the Input Manager processes input events.
 
InputMgr::GetMouseSensitivity Returns the global mouse sensitivity.
InputMgr::SetMouseSensitivity Sets the global mouse sensitivity.
InputMgr::GetMouseFlags Returns the mouse input flags.
InputMgr::SetMouseFlags Sets the mouse input flags.
InputMgr::GetMouseDeltaX Returns the mouse movement delta on the x axis.
InputMgr::GetMouseDeltaY Returns the mouse movement delta on the y axis.
Description
The InputMgr class encapsulates the input device functionality of the C4 Engine. The single instance of the Input Manager is constructed during an application's initialization and destroyed at termination.

The Input Manager's member functions are accessed through the global pointer TheInputMgr.
See Also

InputDevice

InputControl

Action