Publisher
cafezinho
XR Input Simulator
This tool allows you to simulate input on your XRControllers and XRCamera, without having to use a VR headset. First, insert XRSimulator.tscn into Autoload. Move your mouse to control the XRCamera, and scroll to control its height. Press WASD to controll the left controller's joystick, and the arrow keys to control the right controller's joystick. Press Q or E to select the left controller or the right controller, respectively. With a controller selected, you can: - move your mouse to control...
This plugin has been mirrored from the Godot Asset Library.
The plugin author is in no way affiliated with Gadget.
If you are the author of this plugin and would like this mirror removed, please contact support@gadgetgodot.com.
Godot XR Simulator
Simulate XRController3D and XRCamera Input
First Steps
Setup your scene for VR. You can start by following Bastiaan Olij's tutorials https://www.youtube.com/watch?v=wDXnsy2IH1A
Insert
XRSimulator.tscninto Autoload.

Camera controls
When you play the scene, your cursor will be locked in the screen. Press Esc whenever you want to release the cursor.
- Move your mouse to look around
- Scroll to move the camera up and down
Joystick controls
- Press
WASDto move the left controller's joystick - Press the arrow keys to move the right controller's joystick
Selecting a controller
Selecting a controller allow you to move, rotate, and press a button of the selected controller.
- Hold
Qto select the left controller - Hold
Eto select the right controller
Moving and rotating the controllers
- Move your mouse to move the controller
- Scroll to move the controller closer or further away from the camera
- Move your mouse while holding
Shiftto rotate the controller
Trigger and Grip
- Hold
Left Clickto press Trigger (trigger_clickwill be pressed andtriggerwill be set to 1) - Hold
Right Clickto press Grip (grip_clickwill be pressed andgripwill be set to 1)
Other buttons
Pressing 1 to 8 (on the alphanumeric keyboard), -, = and Enter will press or touch buttons on the OpenXR Action Map. On an Oculus Touch controller, pressing 1 presses Y and B, 2 presses X and A, - presses the primary joystick, and Enter presses the menu button.

Action mapping
- 1 presses by_button
- 2 presses ax_button
- 3 presses by_touch
- 4 presses ax_touch
- 5 presses trigger_touch
- 6 presses grip_touch
- 7 presses secondary_click
- 8 presses secondary_touch
-presses primary_click=presses primary_touchEnterpresses menu_button
As stated before, pressing Left Click presses trigger_click, and Right Click presses grip_click.