lovr.headset.isTouched

Returns whether a button on a device is currently touched.

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

Arguments

NameTypeDescription
deviceDevice The device.
buttonDeviceButton The button.

Returns

NameTypeDescription
touchedboolean Whether 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