lovr.system.wasKeyReleased
EditReturns whether a key on the keyboard was released this frame.
released = lovr.system.wasKeyReleased(...)
Arguments
Name | Type | Description |
... | KeyCode | The set of keys to check. |
Returns
Name | Type | Description |
released | boolean | 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!