#include <CeresEngine/Input/InputState.hpp>
◆ operator&() [1/3]
| bool CeresEngine::InputState::operator& |
( |
Button |
button | ) |
const |
|
noexcept |
Checks if a button is pressed.
- Parameters
-
| button | The button to be checked |
- Returns
- True if the
button is pressed
◆ operator&() [2/3]
Checks if a set of buttons are pressed.
- Parameters
-
| buttons | The buttons to be checked |
- Returns
- True if all the
buttons are pressed
◆ operator&() [3/3]
Checks if a set of modifiers are pressed.
- Parameters
-
| modifiers | The modifiers to be checked |
- Returns
- True if all the
modifiers are pressed
◆ operator()() [1/2]
Checks if a button is pressed.
- Parameters
-
| button | The button to be checked |
| modifiers | The modifiers that must be present |
- Returns
- True if both the
button and the modifiers are pressed
◆ operator()() [2/2]
Checks if a set of buttons are pressed.
- Parameters
-
| buttons | The buttons to be checked |
| modifiers | The modifiers that must be present |
- Returns
- True if the both the
buttons and the modifiers are pressed
◆ operator+=()
Updates the input state by pressing a button.
- Parameters
-
◆ operator-=()
Updates the input state by releasing a button.
- Parameters
-
| button | The released button |
◆ operator[]() [1/2]
| double & CeresEngine::InputState::operator[] |
( |
Axis |
axis | ) |
|
Gets a mutable value for a axis
- Parameters
-
| axis | The axis to be fetched |
- Returns
- The mutable axis value
◆ operator[]() [2/2]
| double CeresEngine::InputState::operator[] |
( |
Axis |
axis | ) |
const |
|
noexcept |
Gets the value for a axis
- Parameters
-
| axis | The axis to be fetched |
- Returns
- The axis value
◆ axes
| Array<double, 256> CeresEngine::InputState::axes = {{0.0}} |
|
private |
A array that contains axis normalized data.
◆ buttons
A vector containing all buttons that were pressed.
◆ modifiers
A list of all modifiers buttons that were pressed.
The documentation for this class was generated from the following file:
- /Users/Rogiel/Developer/CeresEngine/Engine/Sources/CeresEngine/Input/InputState.hpp