# Set up controls and key rebinding

> Let players rebind the keys of your Enhanced Input actions, tune look sensitivity and invert, and show button prompts for the device they hold.

Product: Rolly Settings 1.2.0 | Sheet: guide | Updated: 2026-11-23 | HTML: https://rolly-docs.pages.dev/settings/guides/controls-and-rebinding/

Rolly Settings shows, changes and saves the keys of your Enhanced Input actions, and Enhanced Input applies them. The look settings reach the game through two input modifiers, and a device tracker tells your prompts what the player uses. Hold or toggle, the stick rows, Test Sticks and Vibration are in [Set up hold or toggle, sticks and vibration](https://rolly-docs.pages.dev/settings/guides/controls-feel/); control presets, the stick and shoulder swaps, keyboard layouts and touch in [Set up control presets, swaps, keyboard layouts, touch and Steam Deck](https://rolly-docs.pages.dev/settings/guides/presets-layouts-and-touch/).

![The key list](https://rolly-docs.pages.dev/settings/_files/Images/KeyList.png "The Controls category: the key list with a Keyboard & Mouse and a Gamepad column, then the Hold or Toggle rows.")

## Set up rebinding

1. Project Settings > Engine > Enhanced Input > User Settings: keep **Enable User Settings** on (the default in 5.8; on UE 5.7 it is off by default, so turn it on). Project Settings > Engine > Input > **Default Player Input Class** must be an Enhanced Input player input: EnhancedPlayerInput (the editor switches projects to it), or **RollySettingsPlayerInput** for split screen (see [Give split-screen players their own keys](#give-split-screen-players-their-own-keys)).
2. Give every input action the player may rebind **Player Mappable Key Settings** with a unique **Name**, a **Display Name** and a **Display Category** (the heading the row appears under). A mapping can have its own instead (Setting Behavior: Override Settings), which a move action needs: W, A, S and D each need a Name of their own (Move Forward, Move Back and so on). Settle the Names before release: Enhanced Input saves the players' keys by Name and by the order of the Name's mappings, so renaming or reordering them in an update resets those keys for every player.
3. Project Settings > Plugins > Rolly Settings > **Mapping Contexts**: add the mapping contexts that hold those mappings, and the contexts whose fixed keys players must not take (a menu context with Pause on P): those show no rows, but their keys count as conflicts. Rolly Settings registers them for every player as soon as the player has a controller, and cooks them. Contexts your own code registers with Enhanced Input's user settings are listed too, after these.
4. Put the look modifiers into your mapping contexts (see [Sensitivity and invert](#sensitivity-and-invert)): the built-in look rows show only once a registered context carries them.
5. The built-in library already has a Controls category. In your own collection, add a Per Player setting of kind **Key Mappings** with the **Key Mappings** binding, and the sliders, toggle and choice you want. The settings screen shows the key list and captures keys by itself; a screen of your own builds the list with **Get Control Rows** and captures keys with the key capture nodes.

## Pick the controls bindings

| Binding | What it does |
|---|---|
| **Key Mappings** | For the Key Mappings setting: a Reset of its category or of all settings puts the player's keys back to the mapping contexts' defaults. Hides the setting while Enhanced Input's user settings are off |
| **Enhanced Input Key** | For a Key Binding setting: one key of the player's Enhanced Input keys (see [One key as a setting](#one-key-as-a-setting)) |
| **Controller Prompts** | For a Choice with Options From Binding: Auto, Xbox, PlayStation, Nintendo, Generic. **Get Gamepad Family** returns the chosen family, or with Auto the family of the gamepad in use |

All three belong to one player, so use them on Per Player settings; validation reports a Shared one as an error. The Control Preset, Key Swap and Match Keys to Keyboard bindings are in [Set up control presets, swaps, keyboard layouts, touch and Steam Deck](https://rolly-docs.pages.dev/settings/guides/presets-layouts-and-touch/).

## How rows and columns work

**Get Control Rows** returns one row per player-mappable name of the registered contexts, in the order the contexts list them, grouped by Display Category (a row without one goes under General). Each row has a keyboard and mouse column and a gamepad column. A column exists only where a mapping context gives the action a default key of that kind: Enhanced Input puts a player's key only where a context key of the same kind was, so an action with only a keyboard key cannot get a gamepad button from the player. A column is read-only for an axis (the mouse movement, a stick) and for several keys under one name. Keys are never removed, only replaced: every column keeps a key. Only the active key profile (the Control Preset) is shown and changed. A column also says what moved its key without the player choosing it (a swap, the keyboard layout), which actions in its conflict group use the same key, and whether the keyboard layout in use has the key; the settings screen marks the last two with a triangle on the cap. The rows are built on every call, so keep your own copy and build it again on **On Controls Changed**.

**Keys a column takes.** The keyboard and mouse column takes keyboard keys and mouse buttons (the wheel steps included), the gamepad column gamepad buttons (the triggers and stick directions as buttons included). Axes (the mouse movement, a stick or trigger value), touch and motion keys and Any Key are refused.

**Conflicts.** A key that another row uses in the same column is a conflict when both rows belong to one conflict group. All contexts form one group by default; give contexts that are never active together (on foot, in a vehicle) different groups in Project Settings, and their rows may share keys. Refused as well, each with a reason for the player: the reserved keys (Project Settings' **Reserved Keys**, by default Escape and the gamepad's menu button, F11 while it toggles fullscreen and, outside Shipping, the console keys), keys of mappings in the registered contexts of the same group that are not player mappable (a Pause action on P), and keys of actions with **Reserve All Mappings**. When exactly one other row uses the key, the two can swap: that row gets this row's previous key. When more rows use it, the player picks another key. Resets never check keys, so **Find Key Conflicts** lists the keys several rows share after one.

## Capture keys in a screen of your own

The settings screen does this for you (see [Open the settings screen](https://rolly-docs.pages.dev/settings/guides/settings-screen/#what-the-flows-do)). For a screen of your own:

1. **Begin Key Rebind** (row, column) when the player picks a column; show "press a key".
2. Pass the key the player presses next to **Finish Key Rebind**. An accepted key is bound and saved, and the capture ends. A conflict with one other row waits for an answer: show the result's Reason, then **Confirm Key Swap** swaps the keys and **Cancel Key Rebind** keeps both. A refused key (reserved, taken, the other column) keeps the capture open for another key; show the Reason.
3. **Cancel Key Rebind** when the player presses Escape or the gamepad's menu button (both reserved by default), as the settings screen does.

**Rebind Key** does the same in one call, with **Swap When Taken** deciding a conflict. **Check Key** tells what a key would do to a row's column without changing anything: Accepted, Unchanged, Conflict (with the rows that use the key, and whether a swap is possible), Reserved, Taken By Fixed Mapping, Taken By Reserved Action, Wrong Column, Not Bindable, Not Rebindable or Not Ready, with a Reason to show the player.

## How keys are saved

A key change takes effect at once (Enhanced Input applies it to live input at the end of the frame) and is saved at once in Enhanced Input's key file: `<Slot>.sav` in the SaveGames folder (`Saved/SaveGames/EnhancedInputUserSettings.sav` in the editor; the slot is Project Settings > Engine > Enhanced Input > Input Settings Save Slot Name). So changes in the key list stay outside Apply, Discard Pending Changes and confirmations. A change made while the player has no player controller (during travel) is saved as soon as the next controller arrives. **Reset Control Row**, **Reset All Controls**, and a Reset of the Controls category or of all settings (through the Key Mappings setting) put keys back to their defaults and save: the contexts' keys for the active preset, at their places on the player's keyboard layout and mirrored for the swaps the player keeps on. Keys the player changed in a context your code has not registered at the time (a vehicle's, reset from the main menu) go back when the context is registered, since Enhanced Input knows their defaults only then; the waiting reset is kept per player as `KeyResetsWaiting` in `[RollySettings.Player.<n>.Meta]` of `RollySettings.ini`, so it also waits across a restart.

Enhanced Input reads the key file itself when the player gets a controller, and its reader stops the game on a damaged file. Rolly Settings checks the file first, as each local player is created: a damaged one (cut short, or with a length or a count the file cannot hold) is moved to the slot `<Slot>_Damaged` (a later one to `<Slot>_Damaged_2` and on, never over an earlier copy) with a setup warning, and the player starts on the default keys. The check reads the slots Enhanced Input and RollySettingsPlayerInput name, files of engines before 5.4, and files of the settings class your project used before you changed **User Settings Class** (Enhanced Input hands those to the new class).

## One key as a setting

For a key in another category, or behind a condition, add a Key Binding setting with the **Enhanced Input Key** binding, Per Player. The binding names the key by **Mapping Name** (the Name of the action's Player Mappable Key Settings) and **Column** (Keyboard Mouse or Gamepad). It works like any setting: Get Setting Value gives the key's name, Set Setting Value rebinds, On Apply waits for Apply (never Requires Restart, since Enhanced Input saves keys at once). Its default is the context's key, and Enhanced Input saves it; Rolly Settings stores nothing. A refused key (reserved, used by another row, the other column) leaves the key in use; Check Key tells why. The setting is hidden while its column does not exist or cannot change.

## Sensitivity and invert

Two Enhanced Input modifiers read the settings of the player whose input they change:

- **Rolly Settings Sensitivity** multiplies the input by a Slider setting (**Setting Tag**: `Rolly.Settings.Controls.MouseSensitivity` on the mouse look mapping, `Rolly.Settings.Controls.GamepadSensitivity` on the stick look mapping), the vertical axis also by **Vertical Setting Tag**, everything also by **Aim Setting Tag** while its **Aim Action** triggers, and by an optional factor per axis. Put it last in the modifiers of each look mapping, after dead zones and response curves.
- **Rolly Settings Invert** negates each axis while the Toggle setting of that axis is on: **Invert X Tag**, **Invert Y Tag** (`Rolly.Settings.Controls.InvertLookY` by default) and **Invert Z Tag**. Put it last in the modifiers of the look action, so it covers mouse and gamepad at once. A one-axis action follows Invert X Tag.

Both work for one, two and three axes and let a button's value through. They keep the setting's value until one of the player's settings changes, so a call costs a few comparisons and a multiplication. Without a Rolly Settings subsystem (a dedicated server, an editor preview) the input passes unchanged. A tag that names no setting of the right kind is reported once, and the input passes unchanged. The built-in sensitivity and invert rows show only while a registered mapping context carries a modifier that reads them; [Tune the look](https://rolly-docs.pages.dev/settings/guides/controls-feel/#tune-the-look) lists which tag goes where.

## Show the right button prompts

Every player has a device tracker: **Get Input Method** (keyboard and mouse, gamepad, touch), **Get Gamepad Family** (Xbox, PlayStation, Nintendo, Generic), **Get Input Device Names**, and the event **On Input Method Changed**, which fires only when the method or the family changes (the keyboard and the mouse taking turns is no change). The method in use at the start counts as known, so read Get Input Method once at the start to set the first prompts.

- Buttons and keys switch the method at once. A stick or trigger switches it only past **Gamepad Analog Switch Threshold** (Project Settings > Plugins > Rolly Settings Core, 0.5 of full travel), so a drifting stick does not flip the prompts, and the mouse switches it after a move of more than 3 pixels. Call **Ignore Next Mouse Move** after your interface hides, shows or centres the cursor.
- The family comes from the device's names through the **Device Families** table in Project Settings > Plugins > Rolly Settings Core (by default the names of XInput, Xbox, DualSense, DualShock, PS4, PS5, Switch, Pro Controller and Joy-Con pads): exact names first, then parts of names (**Match Part Of Name**); anything else is Generic.
- **Get Prompt Key For Action** gives the key to show for an action in the method in use; **Get Keys For Action** gives all keys of a column (the player's keys, else the live mappings, else the contexts' defaults), for actions that are not player mappable too.
- The **Controller Prompts** setting overrides the family, because the engine alone cannot tell every pad: on Windows a PlayStation pad usually arrives through Steam Input as an Xbox pad.
- Keys are named as the player's keyboard prints them (on Windows, the character a key types on the layout in use, the digit of a number-row key, and "1 (US)" for an engine digit key the layout types elsewhere), and the sticks and their axes read "Left Stick", "Right Stick X".

![PlayStation prompts](https://rolly-docs.pages.dev/settings/_files/Images/PlayStationPrompts.png "The same screen with a PlayStation pad: the prompts show its buttons.")

In C++, the player's input device subsystem (`URollySettingsCoreInputDeviceSubsystem`, from `URollySettingsSubsystem::GetInputDevices`) gives the input method and gamepad family with a native change event.

## Give split-screen players their own keys

Enhanced Input saves the keys of every local player to the same file on desktop, so players overwrite each other's keys. Set Project Settings > Engine > Input > **Default Player Input Class** to **RollySettingsPlayerInput**: the first player keeps the file (the keys of a single-player game stay where they are), and every other player gets a file of their own with `_<platform user index>` added (`EnhancedInputUserSettings_1.sav`). Development builds report a setup warning when two local players share one key file.

## Controls nodes

Category **Rolly|Settings|Controls** on the Rolly Settings Subsystem:

| Node | Notes |
|---|---|
| Are Controls Ready | True once the player has had a controller and Enhanced Input has made the player's key settings; the rows are empty before |
| Get Control Rows, Find Control Row | The key rows: mapping name, display name, category, action, and per column (Keyboard Mouse, Gamepad) whether it exists, whether it can change, the current key, the default key, whether the player changed it, what moved it, the actions that share it and whether the keyboard has it |
| Check Key, Rebind Key | See [Capture keys in a screen of your own](#capture-keys-in-a-screen-of-your-own) |
| Begin Key Rebind, Finish Key Rebind, Confirm Key Swap, Cancel Key Rebind, Is Key Rebind Active | Key capture for a screen |
| Reset Control Row, Reset All Controls, Find Key Conflicts | Resets, and the keys several rows share after one |
| Get Keys For Action, Get Prompt Key For Action | The keys of an action for a column, or the key to show for the input method in use |
| Get Reserved Keys | Keys no row can take |
| Get Input Method, Get Gamepad Family, Get Input Device Names, Ignore Next Mouse Move | Button prompts |

Events: **On Controls Changed** (the keys changed or became available: build the list again) and **On Input Method Changed** (input method, gamepad family: switch the prompts).

In C++, `FRollySettingsControls` (from `URollySettingsSubsystem::GetControls`) holds one player's key rows, checks, rebinds and resets.

## What the checks report

On save, for the controls: a Key Mappings setting that is Shared (error) or has no Key Mappings binding (warning: a Reset would leave the keys alone); an Enhanced Input Key binding on another kind than Key Binding, on a Shared setting or without a mapping name (errors), on a Requires Restart setting (error: Enhanced Input saves keys at once) or next to a Default Key or Platform Defaults it does not use (warning); and a Controller Prompts binding on another kind than Choice or on a Shared setting (errors) or without Options From Binding (warning).

While the game runs: a player input that is not an Enhanced Input one, and a mapping context in Project Settings that cannot be loaded (errors); Enhanced Input's user settings turned off while the collection has key settings; no registered mapping context, or no player-mappable key in them; a key without a Display Name; several keys of one kind under one name (a move action's W, A, S and D); one name with different default keys in two contexts; an Enhanced Input Key setting hidden because its column does not exist or cannot change; local players that share one key file; and a modifier whose Setting Tag names no setting of its kind (warnings). The reports about the key rows come when the list is first built (Get Control Rows) in development builds, because a game may register contexts after the first controller.

## Limits

- Buttons and keys only: no stick, trigger or mouse axis as a new key. A key cannot be removed, only replaced. Rows with an axis or with several keys under one name are read-only.
- Only the active key profile is shown; the Control Preset setting switches it. Keys the game adds per platform through Enhanced Input's platform settings do not appear in the rows.
- Changes made in the key list take effect and are saved at once, outside Apply, Discard Pending Changes and Revert.
- A Player Input class of your own that names the key file's slots in another way than Enhanced Input and RollySettingsPlayerInput gets no check of its files before Enhanced Input reads them.
- The key file check leaves the settings' and key profiles' own property data to the engine's property reader: damage inside it, other than the file ending early, can still stop the game.
- Rolly Settings uses Enhanced Input's user settings and key profile classes through their public calls and never replaces them. A project that sets classes of its own in Project Settings > Engine > Enhanced Input should keep working as long as they keep the stock rows and slots, since Rolly Settings passes each mapping's slot and device back unchanged; the automated tests cover only the stock classes.
- On Windows, with the engine's default plugins, only XInput pads are identified (as Xbox): a PlayStation pad through Steam Input looks like an Xbox pad, and one without Steam Input needs the engine's Windows DualShock plugin with Sony's library. The Controller Prompts setting lets the player choose. Moving a stick less than Gamepad Analog Switch Threshold does not switch the prompts, and neither does connecting a pad.
- Not yet checked on real hardware or in a packaged build: device switching with real pads (stick drift, a pad connected at start, Steam Input), split screen with two pads, and the look modifiers in a running game. The automated tests cover the rules with simulated input.
