1 min read

Source: Roblox Creator Hub · CC BY 4.0 · View source · Code samples: MIT Imported 2026-10-03. Formatting adapted for this site.

VRTouchpadMode

Used to identify the behavior of a specified VR touchpad.

Items

NameValueDescription
Touch0The touchpad is treated as ButtonB if it is the left touchpad, or ButtonA if it is the right touchpad.
VirtualThumbstick1The touchpad will function as a gamepad joystick.
ABXY2The touchpad will function as a means of inputting the standard ABXY gamepad input, dividing it up into 4 diagonal pie slices.

Touch

The touchpad is treated as ButtonB if it is the left touchpad, or ButtonA if it is the right touchpad.

FieldValue
value0

VirtualThumbstick

The touchpad will function as a gamepad joystick.

FieldValue
value1

ABXY

The touchpad will function as a means of inputting the standard ABXY gamepad input, dividing it up into 4 diagonal pie slices.

FieldValue
value2