lovr.system.wasKeyReleased

Edit

Returns whether a key on the keyboard was released this frame.

released = lovr.system.wasKeyReleased(...)

Arguments

NameTypeDescription
...KeyCode The set of keys to check.

Returns

NameTypeDescription
releasedboolean Whether any of the specified keys were released this frame.

Notes

Technically this returns whether the key was released between the last 2 calls to lovr.system.pollEvents, but that function is called automatically at the beginning of each frame in lovr.run, so it all works out!

See also