Difference between revisions of "How to set the right click function in Raspberry Pi(Capacitive touch screen)"

From LCD wiki
Jump to: navigation, search
(Created page with "1、安装依赖库,在Raspberry OS系统终端命令行窗口执行如下命令:<br> sudo apt install build-essential libevdev2 libevdev-dev -y 2、安装软件...")
 
Line 1: Line 1:
1、安装依赖库,在Raspberry OS系统终端命令行窗口执行如下命令:<br>
+
1. Install the dependency library and run the following command in the Raspberry OS terminal command line window:<br>
 
   sudo apt install build-essential libevdev2 libevdev-dev -y     
 
   sudo apt install build-essential libevdev2 libevdev-dev -y     
2、安装软件, 执行如下命令:<br>
+
2. Install the software and run the following command:<br>
 
   wget http://www.lcdwiki.com/res/RaspDriver/evdev-right-click-emulation.tar.gz
 
   wget http://www.lcdwiki.com/res/RaspDriver/evdev-right-click-emulation.tar.gz
 
   sudo tar -zxvf evdev-right-click-emulation.tar.gz
 
   sudo tar -zxvf evdev-right-click-emulation.tar.gz
Line 7: Line 7:
 
   sudo make all
 
   sudo make all
 
   sudo install out/evdev-rce /usr/local/bin
 
   sudo install out/evdev-rce /usr/local/bin
3、设置开机启动 <br>
+
3. Set the startup <br>
1)执行如下命令,打开/etc/rc.local文件
+
1) Run the following command to open '''/etc/rc.local'''
 
     sudo nano /etc/rc.local
 
     sudo nano /etc/rc.local
 
2)在“exit 0”前面行添加如下内容:<br>
 
2)在“exit 0”前面行添加如下内容:<br>

Revision as of 17:40, 3 June 2024

1. Install the dependency library and run the following command in the Raspberry OS terminal command line window:

  sudo apt install build-essential libevdev2 libevdev-dev -y     

2. Install the software and run the following command:

  wget http://www.lcdwiki.com/res/RaspDriver/evdev-right-click-emulation.tar.gz
  sudo tar -zxvf evdev-right-click-emulation.tar.gz
  cd evdev-right-click-emulation
  sudo make all
  sudo install out/evdev-rce /usr/local/bin

3. Set the startup
1) Run the following command to open /etc/rc.local

   sudo nano /etc/rc.local

2)在“exit 0”前面行添加如下内容:

   sudo LONG_CLICK_INTERVAL=1000 LONG_CLICK_FUZZ=200 evdev-rce &

右键功能.png

3)按 Ctrl+X 键,退出;按 Y 键,确认保存;按 Enter 键,确认保存文件名;

4)重启后, 就可以长按触发右键功能了。

 sudo reboot