# Adapt Controls to the Active Device

> For the complete documentation index, see [llms.txt](llms.txt).

Show a keyboard or gamepad prompt and let the player adjust camera sensitivity. Start with a working [Input Setup](ipt-first-steps.html) with mappings for the devices you want to test.

Procedure: Update the prompt

1. Create the prompt widget for the local player. From the player's Input Manager read Get Player Input Mode for the initial prompt and bind a custom event to On Input Mode Changed. Use a fallback prompt until a device has been detected.

2. Send the initial value and the event's new tag to the same widget function. Choose keyboard artwork for `Input.Mode.KeyboardAndMouse`, gamepad artwork for `Input.Mode.Gamepad`, and touch controls for `Input.Mode.Touch`. Remove the binding when disposing of the widget.

Procedure: Apply a saved preference

1. Enable the settings classes from [Build a Key Remapping Menu](ipt-remapping-ui.html). On the mouse Look mapping add Mouse Sensitivity. On its stick mapping add Gamepad Sensitivity. Use Invert XY Axis on mappings where the player can reverse an axis.

2. On your slider's change event, get Input User Settings from the manager. Call Set Mouse Sensitivity X and Set Mouse Sensitivity Y, or Set Gamepad Sensitivity for the stick. Bind an inversion checkbox to Set Invert Vertical Axis. Call Save Input Settings on Apply.

## Try It in Play

Press a mapped keyboard key, then a mapped gamepad button. The prompt should change on each switch. Change the mouse slider and move the mouse the same distance again. The camera should turn a different amount while stick sensitivity stays the same. If the prompt stays put, try a mapped action that produces a nonzero value. If the slider changes but the camera feels identical, inspect the modifiers on the active mapping.

