MCPcopy Create free account
hub / github.com/TombEngine/TombEngine / IsReleased

Method IsReleased

TombEngine/Specific/Input/InputAction.cpp:153–157  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

151 }
152
153 bool Action::IsReleased(float delaySecMax) const
154 {
155 unsigned int delayGameFramesMax = (delaySecMax == FLT_MAX) ? UINT_MAX : SecToGameFrames(delaySecMax);
156 return (_value == 0.0f && _prevValue != 0.0f && _timeActive <= delayGameFramesMax);
157 }
158
159 void Action::Update(bool value)
160 {

Callers 2

DrawDebugInfoMethod · 0.80
IsReleasedFunction · 0.80

Calls 1

SecToGameFramesFunction · 0.85

Tested by

no test coverage detected