Abstract¶
AbstractInput¶
Abstract base class for [Input] implementations.
Inheriting from [AbstractInput] was chosen over Protocol,
to provide better inferred type relation in subclasses:
Protocol would have yielded Input[Unknown].
An advantage to using an abstract base class,
is partial default behaviour, like get_vector.
capture_states¶
Capture press state of all Action variants.
Used for monitoring changes over time.
Technical
Should be called at the start of the frame, before actions are checked for.