◆ ActionBinding()
| RavEngine::InputManager::ActionBinding::ActionBinding |
( |
decltype(id) |
id, |
|
|
actionCallback |
fn, |
|
|
void * |
addr, |
|
|
CID |
c, |
|
|
ActionState |
s |
|
) |
| |
|
inline |
Create an ActionBinding object
- Parameters
-
| thisptr | the owning object to be bound to |
| fn | the lambda to execute |
| addr | the address of the original function on thisptr |
| c | the controller bitmask for this binding |
| s | the required state of the source controller |
◆ IsValid()
| bool RavEngine::InputManager::ActionBinding::IsValid |
( |
| ) |
const |
|
inline |
- Returns
- true if this object can be executed (the bound object has not been destroyed), false otherwise
◆ operator()()
| constexpr void RavEngine::InputManager::ActionBinding::operator() |
( |
ActionState |
state_in, |
|
|
CID |
c_in |
|
) |
| const |
|
inlineconstexpr |
Execute this ActionBinding. If the action binding is invalid, or the input state / controller are not applicable, this function will do nothing.
- Parameters
-
| state_in | the state of the action being invoked |
| controller | the source controller sending the action |
◆ operator==()
The documentation for this class was generated from the following file: