GREM 3.12.0
Game/Rendering Engine Modules for C++
Loading...
Searching...
No Matches
grem::events::InputManager::OutputEventBase Class Reference

Output event base. More...

#include <GREM/events/InputManager.hpp>

Inheritance diagram for grem::events::InputManager::OutputEventBase:

Public Member Functions

GREM_ALWAYS_INLINE TimePoint getTimestamp () const noexcept
 Get the timestamp of the event.
GREM_ALWAYS_INLINE OutputIndex getOutputIndex () const noexcept
 Get the affected output number.
template<enumeration Action>
requires (!same_as<Action, Input> && !same_as<Action, OutputIndex>)
GREM_ALWAYS_INLINE bool isAction (Action action) const noexcept
 Check if the affected output is a certain "action" of any enum type, which is interpreted as corresponding to the output number equal to its underlying value.
GREM_ALWAYS_INLINE ControlState getState () const noexcept
 Get the raw total absolute value of the output after the event took place.
GREM_ALWAYS_INLINE ControlDelta getDelta () const noexcept
 Get the raw total relative value that was applied to the output by the event.

Detailed Description

Output event base.

Member Function Documentation

◆ getTimestamp()

GREM_ALWAYS_INLINE TimePoint grem::events::InputManager::OutputEventBase::getTimestamp ( ) const
inlinenodiscardnoexcept

Get the timestamp of the event.

Returns
the time when the event occured.

◆ getOutputIndex()

GREM_ALWAYS_INLINE OutputIndex grem::events::InputManager::OutputEventBase::getOutputIndex ( ) const
inlinenodiscardnoexcept

Get the affected output number.

Returns
the output number that the event affected.
See also
isAction()

◆ isAction()

template<enumeration Action>
requires (!same_as<Action, Input> && !same_as<Action, OutputIndex>)
GREM_ALWAYS_INLINE bool grem::events::InputManager::OutputEventBase::isAction ( Action action) const
inlinenodiscardnoexcept

Check if the affected output is a certain "action" of any enum type, which is interpreted as corresponding to the output number equal to its underlying value.

Parameters
action
See also
getOutputIndex()

◆ getState()

GREM_ALWAYS_INLINE ControlState grem::events::InputManager::OutputEventBase::getState ( ) const
inlinenodiscardnoexcept

Get the raw total absolute value of the output after the event took place.

Returns
the absolute state of the output after the event.

◆ getDelta()

GREM_ALWAYS_INLINE ControlDelta grem::events::InputManager::OutputEventBase::getDelta ( ) const
inlinenodiscardnoexcept

Get the raw total relative value that was applied to the output by the event.

Returns
the relative state of the output applied by the event.

The documentation for this class was generated from the following file: