Functions

Input

Brief descriptions

Functions

nau::input::setScreenResolution

Informs the input manager of the screen resolution.

nau::input::update()

Updates the input state.

nau::input::update(float dt)

Updates the input state.

nau::input::getGaInputManager

Retrieves the input manager.

Detailed information

input::setScreenResolution

engine/core/modules/input/include/nau/input.h

void nau::input::setScreenResolution(int x, int y)

Informs the input manager of the screen resolution.

It is necessary for the manager to be aware of the screen size for correct mouse input mapping.

Parameters:

x, y[in] Screen resolution.


input::update

engine/core/modules/input/include/nau/input.h

void nau::input::update()

Updates the input state.

If the input manager implementation does not use system time (i.e. useSystemTime is set to false), prefer update(float dt) over this function.


input::update

engine/core/modules/input/include/nau/input.h

void nau::input::update(float dt)

Updates the input state.

If the input manager implementation uses system time (i.e. useSystemTime is set to true), prefer update() over this function.

Parameters:

dt[in] Delta time.


input::getGaInputManager

engine/core/modules/input/include/nau/input.h

void *nau::input::getGaInputManager()

Retrieves the input manager.

Returns:

A pointer to the input manager.