MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / GetKeyDown

Function GetKeyDown

Source/Engine/Input/Keyboard.h:51–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49 /// <param name="key">Key ID to check</param>
50 /// <returns>True if user starts pressing down the key, otherwise false.</returns>
51 API_FUNCTION() FORCE_INLINE bool GetKeyDown(KeyboardKeys key) const
52 {
53 return _state.Keys[static_cast<int32>(key)] && !_prevState.Keys[static_cast<int32>(key)];
54 }
55
56 /// <summary>
57 /// Gets keyboard key up state.

Callers 2

UpdateMethod · 0.85
GetKeyDownMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected