Unfortunately, the Raspberry Pi 7 Touchscreen does not support right-click or long touch if used with Raspbian Jessie. You can add this functionality by using a two-finger touch on the Touchscreen with the program Twofing.

Contents
Install Twofing
- You need a few programs in order to compile Twofing. In case one of those programs is already installed apt-get will automatically recognize this.
- Download Twofing.
- Extract the downloaded file.
- Navigate to the folder that was created during the extraction.
- Start the compilation and install Twofing
-
Optional
I used an original Raspberry Pi 7 Touchscreen with Raspberry Jessie and an error occured during the first start of Twofing.You can fix the error as following.
Open the 70-touchscreen-egalax.rules file with the nano text editor.Delete the complete content and add the following lines.
Exit the text editor with CTRL+X and confirm the changes with Y
- Restart the Raspberry Pi.
- Delete the obsolete folder of Twofing in the home folder.
-
Start Twofing in debug mode and test with two fingers if the right-click works on the Touchscreen.
You can exit the program with CTRL+C.
When running the command through SSH and not directly on the Raspberry Pi, the commandtwofing --debug
will not work. You must first set that Twofing uses the Touchscreen. Therefore, add the following commandand restart Twofing afterwards.
In case you connected an additional monitor through HDMI you need to check the index number of the Touchscreen. You can get the index numbers of all connected monitors using
who
.
Source: http://raspberrypi.stackexchange.com/a/27881/14517
Twofing autostart
In order to not start Twofing after a restart manually you can add a autostart file.
- Navigate to the autostart folder of your home folder.
- Create a file with the name twofing.desktop and open it.
-
Add the following text to the file.
Exit the text editor with CTRL+X and confirm the changes with Y