Difference between revisions of "How to set the right click function in Raspberry Pi(Capacitive touch screen)"
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
+ | {{lan | ||
+ | | | ||
+ | cn=http://www.lcdwiki.com/zh/%E7%94%B5%E5%AE%B9%E8%A7%A6%E6%91%B8%E5%B1%8F%E5%9C%A8%E6%A0%91%E8%8E%93%E6%B4%BE%E4%B8%AD%E5%A6%82%E4%BD%95%E8%AE%BE%E7%BD%AE%E5%8F%B3%E9%94%AE%E5%8A%9F%E8%83%BD | ||
+ | | | ||
+ | en=http://www.lcdwiki.com/How_to_set_the_right_click_function_in_Raspberry_Pi(Capacitive_touch_screen) | ||
+ | }} | ||
+ | |||
+ | |||
+ | |||
1. Install the dependency library and run the following command in the Raspberry OS terminal command line window:<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 | ||
Line 15: | Line 24: | ||
[[File: 右键功能.png|600px]] | [[File: 右键功能.png|600px]] | ||
<br><br> | <br><br> | ||
− | 3) | + | 3) Press '''Ctrl+X''', ready to exit; Press '''Y''' to confirm and save; Press '''Enter''' to exit. |
− | + | ||
− | + | 4. Restart:<br> | |
+ | sudo reboot |
Latest revision as of 17:47, 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) Add the following content to the front of 'exit 0':
sudo LONG_CLICK_INTERVAL=1000 LONG_CLICK_FUZZ=200 evdev-rce &
3) Press Ctrl+X, ready to exit; Press Y to confirm and save; Press Enter to exit.
4. Restart:
sudo reboot