libinput  0.6.0
A wrapper library for input devices
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Touchpad button behavior

For touchpad devices without physical buttons, libinput enables an emulated right button area through either of two methods.

Software button areas

On most touchpads, the bottom area of the touchpad is split into a left and a right-button area. Pressing the touchpad down with a finger in those areas will generate clicks as shown in the diagram below:

+------------------------+
| |
| |
| LEFT |
| |
| |
+------------------------+
| LEFT | RIGHT |
+------------------------+
*

Generally, the touchpad will emulate a right-button click if the finger was set down in the right button area and did not leave the right button area before clicking, even if another finger was already down on the touchpad in another area. A middle click is generated by clicking the touchpad when one finger is in the bottom left button area, and one finger is in the botton right button area. The exact behavior of the touchpad is implementation-dependent.

Top software button area

On selected touchpads, the top area of the touchpad is a separate set of software buttons split into a left, middle and right button area. Pressing the touchpad down with a finger in those areas will generate clicks as shown in the diagram below:

+------------------------+
| LEFT | MIDDLE | RIGHT |
+------------------------+
| |
| LEFT |
| |
+------------------------+
| LEFT | RIGHT |
+------------------------+
*

This behavior is enabled on the Lenovo *40 series (T440, T540, T240...) and the Lenovo Helix, Yoga S1 and Carbon X1 2nd.

Clickfinger

On Apple touchpads, no button areas are provided. Instead, use a two-finger click for a right button click, and a three-finger click for a middle button click.