The following configurations require the evdev. If it is not already installed, install it with sudo apt install xserver-xorg-input-evdev
. For more information about the evdev options and their syntax please see the evdev manpage and the InputClass configuration options.
The following procedure will configure X Windows so a long-touch (touch and hold) will simulate a right-click and display a context menu.
Section "InputClass" Identifier "touch gestures" Driver "evdev" MatchProduct "Microchip Technology Inc. AR1100 HID-MOUSE" Option "EmulateThirdButton" "1" Option "EmulateThirdButtonTimeout" "750" Option "EmulateThirdButtonMoveThreshold" "50" EndSection
The following procedure will configure X Windows so when you touch and drag your finger up and down the touchscreen it will scroll.
Section "InputClass" Identifier "touch gestures" Driver "evdev" MatchProduct "Microchip Technology Inc. AR1100 HID-MOUSE" Option "EmulateWheel" "1" Option "EmulateWheelButton" "1" Option "EmulateWheelInertia" "10" Option "EmulateWheelTimeout" "200" Option "YAxisMapping" "4 5" EndSection
"EmulateWheelInertia" "10"
"EmulateWheelInertia" "100"
Use Option "YAxisMapping" "5 4"
to invert the scroll direction.