lovr.headset.wasReleased
EditReturns whether a button on a device was released this frame.
released = lovr.headset.wasReleased(device, button)Arguments
| Name | Type | Description |
| device | Device | The device. |
| button | DeviceButton | The button to check. |
Returns
| Name | Type | Description |
| released | boolean | Whether the button on the device was released this frame. |
Notes
Some headset backends are not able to return pressed/released information. These drivers will always return false for lovr.headset.wasPressed and lovr.headset.wasReleased.
Typically the internal lovr.headset.update function will update pressed/released status.