lovr.headset.isTouched

Returns whether a button on a device is currently touched.

touched = lovr.headset.isTouched(device, button)

Arguments

NameTypeDescription
deviceDeviceThe device.
buttonDeviceButtonThe button.

Returns

NameTypeDescription
touchedbooleanWhether the button on the device is currently touched, or nil if the device does not have the button or it isn't touch-sensitive.

See also