lovr.headset.isDown
EditReturns whether a button on a device is pressed.
down = lovr.headset.isDown(device, button)
Arguments
Name | Type | Description |
device | Device | The device. |
button | DeviceButton | The button. |
Returns
Name | Type | Description |
down | boolean |
Whether the button on the device is currently pressed, or nil if the device does not have the specified button.
|
Notes
When hand tracking is active, pinching will be mapped to the trigger
button.