|
Avara3D 0.2.0
C++ API reference
|
Base interface for Scene input state updated once per Runner host update. More...
#include <a3d/input/InputContext.h>
Classes | |
| struct | UpdateInfo |
| Timing information for one input update. More... | |
Public Types | |
| using | DidUpdateCallback = std::function< void(InputContext &inputContext, const UpdateInfo &info)> |
| Callback invoked after input state has been updated for the current Runner host update. More... | |
Public Member Functions | |
| InputContext () | |
| Creates an InputContext with no did-update callback. More... | |
| DidUpdateCallback | didUpdateCallback () const |
| Returns the callback invoked after each input update. More... | |
| void | didUpdateCallback (DidUpdateCallback callback) |
| Sets the did-update callback; an empty callback disables it. More... | |
Base interface for Scene input state updated once per Runner host update.
Event polling occurs before the InputContext is updated. The did-update callback runs after the concrete input context has made the current update's state available and before simulation scheduling and rendering continue.
Definition at line 27 of file InputContext.h.
| using a3d::InputContext::DidUpdateCallback = std::function<void(InputContext& inputContext, const UpdateInfo& info)> |
Callback invoked after input state has been updated for the current Runner host update.
Definition at line 48 of file InputContext.h.
| a3d::InputContext::InputContext | ( | ) |
Creates an InputContext with no did-update callback.
| DidUpdateCallback a3d::InputContext::didUpdateCallback | ( | ) | const |
Returns the callback invoked after each input update.
| void a3d::InputContext::didUpdateCallback | ( | DidUpdateCallback | callback | ) |
Sets the did-update callback; an empty callback disables it.