# Set up hold or toggle, sticks and vibration

> Let players pick hold or toggle for actions such as sprint, crouch and aim, slow the look down vertically or while aiming, set each stick's dead zones and...

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

The built-in library's Controls category holds these rows under the headings Hold or Toggle, Look, Sticks and Controller. Rolly Settings stores their values; a trigger and three input modifiers that you put into your mapping contexts apply them to the player's input. A row that only one of them gives meaning stays hidden until a mapping context registered for the player carries the trigger or modifier that reads its tag, so players never see a row that changes nothing. Registered means listed in Project Settings > Plugins > Rolly Settings > **Mapping Contexts**, or registered with Enhanced Input's user settings by your own code; the rows appear at once when a context is registered while the settings screen is open. Vibration and Controller Prompts always show, and a heading hides while all its rows are hidden.

![The Controls category](https://rolly-docs.pages.dev/settings/_files/Images/ControlsFeel.png "The Hold or Toggle and Look sections of Controls, below the key list, with contexts that use every row's tag.")

## Let players hold or toggle an action

1. In the action (or in its mappings), replace **Down**, **Pressed** or **Hold** with the trigger **Rolly Settings Hold or Toggle**.
2. Set its **Setting Tag**: `Rolly.Settings.Controls.SprintMode`, `.CrouchMode` or `.AimMode`, or the tag of a mode row of your own (see [Add a mode row of your own](#add-a-mode-row-of-your-own)).
3. Keep **Hold Time** at 0 for an action that lasts while it is held (sprint, crouch, aim): its row offers Hold and Toggle. A Hold Time above 0 makes a timed hold that triggers once (a charged throw, holding to open a door): its row offers Hold and Press, and Toggle too when you tick **Allow Toggle**.
4. In your Blueprint, use the action's **Started** and **Completed** events, or **Triggered** for a timed hold. While an action is toggled on it stays Triggered, but its value reads zero once the button is up, so code that reads the value instead of the events stops.

| Mode | Hold Time 0 | Hold Time above 0 |
|---|---|---|
| Hold | Runs while the button is down | Triggers once when the button has been held for Hold Time |
| Toggle | One press starts it, the next press stops it | One press starts the hold, which triggers once when Hold Time is up; a second press before then lets go |
| Press | Not offered | One press triggers it at once |

A mode the trigger does not offer (a saved Press after you set Hold Time to 0) plays as Hold. Until a registered context carries the trigger (one your code registers after the start), the row is hidden and keeps the player's saved mode. A toggle ends when the player picks another mode for the action, when the player's controller possesses another pawn or none (a respawn, getting into or out of a vehicle, a destroyed pawn), when the player gets a new player controller (a map change) and when you call **Release Toggles** on the Rolly Settings Subsystem: do that when the player dies and keeps the pawn, a cutscene starts or a menu of your own takes the input. Tick Project Settings > Plugins > Rolly Settings > **Keep Toggles On Pawn Change** for a game whose toggles carry over to the next pawn (a sprint onto a mount). **Is Toggled On** tells whether the action of a mode row is toggled on. A pause stops a toggled action as it stops every action without **Trigger When Paused**; the toggle stays on, and the action runs again after the pause.

Enhanced Input looks at a trigger only on frames with input from its key, so while a toggle is on, Rolly Settings feeds the action into the player's input once per frame, with a zero value; nothing runs while no toggle is on.

On UE 5.7: when Enhanced Input rebuilds the player's mappings (a mapping context added or removed, a key rebound), a timed hold in progress of a trigger in a mapping starts over, as Epic's Hold trigger does there, while a trigger on the action keeps its time; toggles keep their state, and a button held through the rebuild is no new press.

In the key list, the row of an action that has a mode row says its mode in the detail: "Crouch Mode: Toggle."

### Add a mode row of your own

Add a Choice to your collection, Per Player, with the **Hold or Toggle** binding and **Options From Binding** ticked, and put its tag on the action's trigger. Its options follow the trigger. Leave **Display Name** empty to have the row named after the action, "{Action} Mode" (the Display Name of the action's Player Mappable Key Settings, else its Action Description), and **Description** empty to have one sentence per offered mode: "Hold: keep the button down. Toggle: press once to start and again to stop." A Default Option of Hold keeps the action as you designed it. A screen of your own reads that name and description with **Get Setting Display Name** and **Get Setting Description** on the Rolly Settings Subsystem, since the setting's own fields stay empty.

## Tune the look

The Look section has a base sensitivity for the mouse and for the gamepad, and two shares of each: Vertical Sensitivity multiplies only the up and down axis, Aim Sensitivity multiplies both axes while the player aims. Invert Vertical Look and Invert Horizontal Look turn each axis around.

- **Rolly Settings Sensitivity**, last in the modifiers of each look mapping. It reads the mouse rows by default; on the stick mapping, set **Setting Tag** to `Rolly.Settings.Controls.GamepadSensitivity` and the editor moves its vertical and aim tags to the gamepad's. Set **Aim Action** to your aim action for the aim share to apply while it triggers; without one, the Aim Sensitivity rows stay hidden. The look reads the aim of the frame before, because Enhanced Input updates actions after their keys.
- **Rolly Settings Invert**, last in the modifiers of the look action, so it covers the mouse and the stick at once. **Invert Y Tag** is Invert Vertical Look by default; set **Invert X Tag** to `Rolly.Settings.Controls.InvertLookX` for Invert Horizontal Look.

[Set up controls and key rebinding](https://rolly-docs.pages.dev/settings/guides/controls-and-rebinding/#sensitivity-and-invert) describes what both modifiers share.

## Shape the sticks

Replace the engine's **Dead Zone** modifier on each stick mapping with **Rolly Settings Stick**, first in its modifiers (before Swizzle Input Axis Values, Negate and Sensitivity), and set its **Job**:

- **Movement** (the left stick by default) reads Movement Stick Dead Zone and Movement Stick Outer Dead Zone.
- **Camera** (the right stick by default) reads Camera Stick Dead Zone, Camera Stick Outer Dead Zone and Camera Stick Response Curve.

A push shorter than the dead zone counts as none, the outer dead zone's band at the edge already counts as full, and the response curve shapes the travel between them: Linear turns in step with the stick, Low, Medium and High raise the travel to the power 1.5, 2 and 3, so small pushes turn slower and a full push still turns at full speed. The modifier works on the length of the push, so a diagonal keeps its direction. With the defaults (dead zone 20 %, no outer dead zone, Linear) it gives what the engine's Dead Zone gives with its defaults (Radial, from 0.2 to 1), so swapping an untuned Dead Zone changes nothing until the player changes a value. For a mapping whose Dead Zone you tuned, set the dead zone rows' defaults in your collection to its Lower Threshold and to 1 minus its Upper Threshold; the Stick modifier is always radial, so an Axial dead zone feels different after the swap.

The rows are named by the stick's job, not its side, so they stay right when the player turns on **Swap Sticks** ([Set up control presets, swaps, keyboard layouts, touch and Steam Deck](https://rolly-docs.pages.dev/settings/guides/presets-layouts-and-touch/#let-players-swap-sticks-and-shoulder-buttons)): the modifier sits on the mapping, so it shapes whichever stick the player's key for the mapping is. Use one of the two modifiers on a mapping, not both: with both, the stick passes two dead zones and the player's value is not what the game gets. For the two movement invert rows, add **Rolly Settings Invert** to the movement stick's mapping, after Rolly Settings Stick, with **Invert X Tag** `Rolly.Settings.Controls.InvertMoveX` and **Invert Y Tag** `Rolly.Settings.Controls.InvertMoveY`. On the move action it would turn W, A, S and D around too.

## Let players test their sticks

**Test Sticks**, the last row of Sticks, opens a screen that shows both sticks live beside their rows, so a player can see drift and try values. It shows while a registered context has a Rolly Settings Stick modifier, and stays locked while the player has no controller: "Connect a controller to test the sticks."

![Test Sticks](https://rolly-docs.pages.dev/settings/_files/Images/TestSticks.png "Test Sticks at 1920 x 1080: a movement stick drifting inside its dead zone, its dot still at the centre, and a camera stick pushed 62 % with a 10 % outer dead zone and the Medium curve, so the game gets 36 %.")

- Each view is labelled with its job and the stick the player's keys put it on ("Movement, right stick" with Swap Sticks on).
- Each stick view draws the dead zone and the outer dead zone, the stick's raw position as a ring and what the game gets as a dot, with the modifier's own arithmetic and the player's invert rows; inside the dead zone the dot stays at the centre. The readouts under the views give both as percentages. The curve view shows the camera stick's response curve and where its push sits on it; it hides without the Camera Stick Response Curve row.
- The sticks only show here: they never move focus. Up and Down move between the rows and wrap, Left and Right change the value, which shows at once.
- **Done** (A, Enter) applies and saves these rows only. **Cancel** (B, Escape), the gamepad's Menu button and every close from outside put back the values from when the screen opened. **Reset** (Y, R) returns the focused row to its default.
- Without a controller the views keep their zones without the ring and the dot, and a warning replaces the tip; the rows still work. The first stick that moves brings the sticks back, for a pad the device list missed.
- Short areas put the views left of the rows. The smallest areas (under 440 units high) keep only the two stick views, smaller and labelled Movement and Camera, without the readouts, the curve and the tip, so the rows keep room for their names and sliders. In split screen the screen covers the opening player's area and shows that player's pad.

Open it from game code with **Open Rolly Calibration** and the calibration **Sticks**, or **Open Stick Test** on **Get Rolly Settings UI**. While no registered context has a Stick modifier, the node answers Cancelled and Open Stick Test returns none. Project Settings > Plugins > Rolly Settings Screen > **Stick Test Screen Class** takes a Blueprint subclass with a layout of its own, whose widgets are named like the parts: TitleText, InstructionText, TipText, TipIcon, MovementView, CameraView, CurveView, MovementLabel, CameraLabel, CurveLabel, MovementReadout, CameraReadout, CurveCaption, RowList, PromptBar, PlayerBadge, TouchBackButton and Backdrop. The views are the widgets **Rolly Settings Stick View** and **Rolly Settings Curve View**.

## Set how strongly the controller vibrates

**Vibration** runs from Off to 100 % in steps of 10 %. It scales the rumble of the player's controller, from Force Feedback Effects, dynamic rumble and force feedback components alike: the controller's **Force Feedback Scale** becomes its class's own times the value, and at Off the rumble and haptic effects (Play Haptic Effect) stop. Every new controller gets the value again.

A Force Feedback Effect's device properties (a DualSense's trigger resistance and trigger vibration, its light colour) are not rumble: the engine activates them at every value, Off included, and so does **Activate Device Property Of Class**. To honour Off, read the player's value (**Get Float Value** with `Rolly.Settings.Controls.Vibration`) and at 0 play an effect without device properties, or skip the property.

Every change the player makes plays a short test vibration at the new strength, 0.3 seconds on all motors, on the player's own controller and while the game is paused too: dragging the slider plays at most one every 0.15 seconds and one at the last strength. On the row, Accept plays it again; the prompt reads Test and dims at Off, where nothing plays. **Play Vibration Test** plays it for a screen of your own, and **Has Controller** tells whether the player holds a controller.

## Use the bindings in a collection of your own

| Binding | For | Notes |
|---|---|---|
| **Input Modifier** | A Slider, Toggle or Choice that a Rolly Settings modifier reads | Stores the value; shown while a registered context uses its tag |
| **Hold or Toggle** | A Choice with Options From Binding | See [Add a mode row of your own](#add-a-mode-row-of-your-own) |
| **Vibration** | A Slider from 0 to 1 | A Min Value Text of "Off" makes 0 read Off |
| **Test Sticks** | An Action | Opens Test Sticks for the player who runs it |

All four belong to one player: validation reports a Shared setting with any of them (an error for the first three, a warning for Test Sticks). A modifier or trigger of your own makes its settings show the same way when it implements the C++ interface `IRollySettingsInputSettingsUser` (`GetUsedSettingTags`).

## Controls nodes for these rows

Category **Rolly|Settings|Controls** on the Rolly Settings Subsystem: **Release Toggles**, **Is Toggled On**, **Has Controller** and **Play Vibration Test**. In C++, `URollySettingsSubsystem` gives the player's `FRollySettingsInputUsage` (`GetInputUsage`: the tags the registered contexts read, where the Stick modifiers sit, the mode triggers and their actions), `FRollySettingsToggles` (`GetToggles`) and `FRollySettingsVibration` (`GetVibration`). `FRollySettingsStickMath` holds the stick arithmetic that the modifier and Test Sticks share, for a stick view of your own.

## What the checks report

On save: Input Modifier, Hold or Toggle or Vibration on a Shared setting, and any of the four on another kind of setting than it takes (errors); Test Sticks on a Shared setting, a Hold or Toggle setting without Options From Binding, a Vibration slider outside 0 to 1, and a Vibration setting that does not apply at once, whose change pulse would play at the old strength (warnings).

While the game runs, in development builds: the engine's Dead Zone and a Rolly Settings Stick on one mapping; a Hold or Toggle trigger beside another explicit trigger, so either can trigger the action; a Hold or Toggle trigger without a Setting Tag; one mode row read by the triggers of two actions, which then share one toggle; a mode row without a name whose action has no name either; and a Setting Tag that names no setting of the right kind (warnings, each reported once).

## Limits

- Test Sticks shows the first registered Stick modifier of each job; a game with several movement sticks shows the first.
- The aim share applies from the frame after the aim action triggers.
- At Off, haptic effects are blocked through the player controller, which the engine gives no way to read; Rolly Settings lifts only a block it set itself. Above Off, haptic effects play at full strength, since the engine does not scale them.
- Not yet checked on real hardware: vibration strengths on real pads, Test Sticks with real sticks, and two pads in split screen. The automated tests drive the trigger, the modifiers and the screens with simulated input and the engine's own force feedback pass.
