lovr.headset.isTouched
EditReturns whether a button on a device is currently touched.
touched = lovr.headset.isTouched(device, button)
Arguments
Name | Type | Description |
device | Device | The device. |
button | DeviceButton | The button. |
Returns
Name | Type | Description |
touched | boolean |
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.
|