Controller Settings
Whether to allow controller input from the client.
The type of gamepad to emulate on the host.Options:
auto- Automatically select based on client capabilitiesx360- Xbox 360 controller (Windows only)xone- Xbox One controller (FreeBSD/Linux only)ds4- DualShock 4 controller / PS4 (Windows only)ds5- DualSense controller / PS5 (FreeBSD/Linux only)switch- Switch Pro controller (FreeBSD/Linux only)
Auto Gamepad Selection
If client reports motion sensor support, emulate as DS4 controller.
Only applies when gamepad is set to
autoIf client reports touchpad support, emulate as DS4 controller.
Only applies when gamepad is set to
autoDualShock 4 Settings
Allow Select/Back button to trigger DS4 touchpad click. Useful for clients emulating touchpad clicks on XInput devices.
Only applies when gamepad is manually set to
ds4DualSense Settings
Randomize the MAC address for virtual PS5 controllers.
Linux only, applies to PS5-style controllers
Controller Button Mapping
Milliseconds to hold Back/Select button to emulate Home/Guide button press.
Keyboard Settings
Whether to allow keyboard input from the client.
Initial delay in milliseconds before repeating keys.
How often keys repeat per second (supports decimals).
Send scancodes for better game compatibility.Enable if: Keyboard input doesn’t work in certain applicationsDisable if: Keys generate wrong input (non-US keyboard layouts)
Windows only
Remap Right Alt key to Windows key. Useful when Moonlight cannot send the Windows key directly.
Key Bindings
Map virtual key codes for special key handling. Useful on Wayland where the Win key cannot be captured.Array must have an even number of elements (pairs of source and target key codes).See Virtual Key Codes for reference.
Not available in Web UI - must be configured in config file
Mouse Settings
Whether to allow mouse input from the client.
Pass through high resolution scroll events from Moonlight.Disable for older applications that scroll too fast with high resolution events.
Pass through native pen/touch events from Moonlight.Disable for older applications without native pen/touch support.
Example Configuration
Auto Controller Selection
Fixed Xbox 360 Controller (Windows)
DualShock 4 with Motion (Windows)
DualSense Controller (Linux)
Platform-Specific Notes
- Windows
- Linux
- FreeBSD
- macOS
- Xbox 360 (x360) and DualShock 4 (ds4) emulation available
always_send_scancodesimproves game compatibility- Use
key_rightalt_to_key_winif Windows key doesn’t work
Troubleshooting
Controller not detected in games
Controller not detected in games
- Try setting
gamepadto a specific controller type instead ofauto - For Windows games, try
x360(most compatible) - Check if the game supports the emulated controller type
Wrong keyboard keys on client
Wrong keyboard keys on client
- Disable
always_send_scancodesif using non-US keyboard layout - Check client keyboard layout matches host
Windows key doesn't work
Windows key doesn't work
- Enable
key_rightalt_to_key_winto use Right Alt as Windows key - On Wayland, configure
keybindingsto map Win key
Touchpad/motion doesn't work
Touchpad/motion doesn't work
- Ensure client reports touchpad/motion support
- Set
gamepad = ds4(Windows) orgamepad = ds5(Linux) - Verify
touchpad_as_ds4andmotion_as_ds4are enabled
Next Steps
Network Settings
Configure ports and network access
Applications
Add games and applications to stream

