lovr.headset.isDown

Returns whether a button on a device is pressed.

down = lovr.headset.isDown(device, button)

Arguments

NameTypeDescription
deviceDeviceThe device.
buttonDeviceButtonThe button.

Returns

NameTypeDescription
downbooleanWhether the button on the device is currently pressed, or nil if the device does not have the specified button.

See also