lovr.headset.wasPressed
EditReturns whether a button on a device was pressed this frame.
pressed = lovr.headset.wasPressed(device, button)Arguments
| Name | Type | Description |
| device | Device | The device. |
| button | DeviceButton | The button to check. |
Returns
| Name | Type | Description |
| pressed | boolean | Whether the button on the device was pressed this frame. |
Notes
The internal lovr.headset.update function updates pressed/released status.