Functions¶
Input/Devices
Brief descriptions¶
Functions |
|
Retrieves the number of currently registered keyboard devices. |
|
Checks whether the keyboard button has just been pressed. |
|
Checks whether the keyboard button is being held down currently. |
|
Retrieves the number of currently registered mouse devices. |
|
Checks if the mouse button has just been pressed. |
|
Checks if the mouse button has just been released. |
|
Checks whether the mouse button is being held down currently. |
|
Retrieves the mouse axis absolute value. |
|
Retrieves the mouse axis delta value. |
Detailed information¶
input::getKeyboardDeviceCount¶
engine/core/modules/input/include/nau/input.h
-
int nau::input::getKeyboardDeviceCount()¶
Retrieves the number of currently registered keyboard devices.
- Returns:
Number of keyboard devices.
input::getMouseDeviceCount¶
engine/core/modules/input/include/nau/input.h
-
int nau::input::getMouseDeviceCount()¶
Retrieves the number of currently registered mouse devices.
- Returns:
Number of mouse devices.
input::getMouseAxisValue¶
engine/core/modules/input/include/nau/input.h
-
float nau::input::getMouseAxisValue(int deviceId, nau::input::MouseKey key)¶
Retrieves the mouse axis absolute value.
- Parameters:
deviceId – [in] Index of the device to check.
key – [in] Code of the axis to retrieve. It has to be either nau::input::MouseKey::AxisX or nau::input::MouseKey::AxisY.
- Returns:
Absolute axis value.
input::getMouseAxisDelta¶
engine/core/modules/input/include/nau/input.h
-
float nau::input::getMouseAxisDelta(int deviceId, nau::input::MouseKey key)¶
Retrieves the mouse axis delta value.
- Parameters:
deviceId – [in] Index of the device to check.
key – [in] Code of the axis to retrieve. It has to be either nau::input::MouseKey::AxisX or nau::input::MouseKey::AxisY.
- Returns:
Difference between the current value of the axis and its value in the previous frame.