lovr.headset.setButton
EditSets the virtual button state of a device. When no headset sesssion is active, querying the button state will return this value. This is used to implement the keyboard/mouse headset simulator in the lovr.simulate callback.
lovr.headset.setButton(device, button, down)Arguments
| Name | Type | Description |
| device | Device | The device to assign the position to. |
| button | DeviceButton | The button to change. |
| down | boolean | Whether the button is pressed. |
Returns
Nothing