9#ifndef AVARA3D_INPUT_INPUTCONTEXT_H
10#define AVARA3D_INPUT_INPUTCONTEXT_H
73 virtual void update(
const UpdateInfo& info) = 0;
74 virtual void attachedToScene(
Scene& scene) = 0;
75 virtual void visualWorldAttachedToScene(
Scene& scene) = 0;
Base interface for Scene input state updated once per Runner host update.
std::function< void(InputContext &inputContext, const UpdateInfo &info)> DidUpdateCallback
Callback invoked after input state has been updated for the current Runner host update.
InputContext()
Creates an InputContext with no did-update callback.
DidUpdateCallback didUpdateCallback() const
Returns the callback invoked after each input update.
void didUpdateCallback(DidUpdateCallback callback)
Sets the did-update callback; an empty callback disables it.
Owns a scene graph and the worlds used to simulate and render it.
Timing information for one input update.
std::uint64_t updateIndex
Zero-based index of the enclosing Runner host update.
double deltaTime
Time since the preceding host update, in seconds; zero on the first update.
double elapsedTime
Elapsed host-loop time at this input update, in seconds.