lovr.headset.wasPressed

Edit

Returns whether a button on a device was pressed this frame.

pressed = lovr.headset.wasPressed(device, button)

Arguments

NameTypeDescription
deviceDevice The device.
buttonDeviceButton The button to check.

Returns

NameTypeDescription
pressedboolean Whether the button on the device was pressed this frame.

Notes

The internal lovr.headset.update function updates pressed/released status.

See also