Datasheet

If you want to disable booting to X, just use the raspi-config command again to choose the console boot option.
Right-click on a touchscreen
Obviously if you have a touchscreen, it cannot tell what finger you are pressing with. This means that all 'clicks' are left
clicks. But if you want a right-click, you
can
do it.
Just add the following lines into your InputClass of /etc/X11/xorg.conf.d/99-calibration.conf after the calibration section
Option "EmulateThirdButton" "1"
Option "EmulateThirdButtonTimeout" "750"
Option "EmulateThirdButtonMoveThreshold" "30"
So for example your file will look like:
Section "InputClass"
Identifier "calibration"
MatchProduct "stmpe-ts"
Option "Calibration" "3800 120 200 3900"
Option "SwapAxes" "1"
Option "EmulateThirdButton" "1"
Option "EmulateThirdButtonTimeout" "750"
Option "EmulateThirdButtonMoveThreshold" "30"
EndSection
This makes a right mouse click emulated when holding down the stylus for 750 ms.
(Thx adamaddin!)
© Adafruit Industries
https://learn.adafruit.com/adafruit-pitft-28-inch-resistive-touchscreen-display-raspberry-
pi
Page 63 of 70