lovr.headset.setButton

Edit

Sets 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

NameTypeDescription
deviceDevice The device to assign the position to.
buttonDeviceButton The button to change.
downboolean Whether the button is pressed.

Returns

Nothing

See also