A gesture is a mapping that lets you use mouse movement to control something other than the cursor while another input is held, such as scrolling or switching tabs. While you hold the button, the gesture's movements take over from the cursor, so the cursor stands still unless you want it to keep moving.
The action library includes some basic gestures and a template to get you started.

Example: Scroll Gesture
We'll use the Scroll Gesture to explain how gestures work.
Below, the Scroll Gesture has been added to the Rear Edge button. While this button is held down, moving the mouse scrolls smoothly instead of moving the cursor. Releasing the button gives you back control of the cursor.

The gesture is made up of four nested movement inputs, one for each direction, and each has three settings:
- Direction: the direction of movement that activates the output: left, right, up, down, or any.
- Distance: how far the mouse must move to activate the output, measured in counts from the optical sensor. This means the current DPI affects how sensitive the gesture is.
- Repeat: whether the output repeats each time the distance is reached, or activates only once per gesture.

Each movement input is mapped to a single scroll in the opposite direction, so the gesture works like scrolling on a touch screen.
Gesture Template
The action library also includes a gesture template: an empty gesture mapping you can use as the starting point for any custom gesture. Select it from the library, set the Distance and Repeat options for your use, and assign outputs to the directions you want to use.
How to keep cursor movement during a gesture
If you want the cursor to move during your gesture, add another nested mouse movement input, and set it to repeat every 1 count in any direction.

Click the new input's empty output to open its output list.

Then add a Mouse > Movement > Follow Mouse output.

By default, the Follow Mouse output moves your cursor at its normal speed for your DPI. You can adjust its X and Y Scale values to increase, decrease or stop movement on either axis.
- 1 moves the cursor as normal, 2 moves it twice as far, and 0 stops it moving on that axis.