“模板:RPILCD-RIGHT-CLICK”的版本间的差异

来自丢石头百科
(创建页面,内容为“== '''增加长按右键功能''' == 注:新版本驱动默认已添加"长按右键功能"。 *编辑99-calibration.conf文件 <source lang="c"> sudo nano /etc/…”)
 
(文本替换 - 替换“</source>”为“</syntaxhighlight>”)
第6行: 第6行:
 
<source lang="c">
 
<source lang="c">
 
sudo nano /etc/X11/xorg.conf.d/99-calibration.conf
 
sudo nano /etc/X11/xorg.conf.d/99-calibration.conf
</source>
+
</syntaxhighlight>
  
 
*在文件中添加以下代码:
 
*在文件中添加以下代码:
第13行: 第13行:
 
Option "EmulateThirdButtonTimeout" "750"
 
Option "EmulateThirdButtonTimeout" "750"
 
Option "EmulateThirdButtonMoveThreshold" "100"
 
Option "EmulateThirdButtonMoveThreshold" "100"
</source>
+
</syntaxhighlight>
  
 
[[File:RPILCD-RIGHT-CLICK.png]]
 
[[File:RPILCD-RIGHT-CLICK.png]]
第20行: 第20行:
 
<source lang="c">
 
<source lang="c">
 
reboot
 
reboot
</source>
+
</syntaxhighlight>

2019年11月14日 (四) 16:20的版本

增加长按右键功能

注:新版本驱动默认已添加"长按右键功能"。

  • 编辑99-calibration.conf文件

<source lang="c"> sudo nano /etc/X11/xorg.conf.d/99-calibration.conf </syntaxhighlight>

  • 在文件中添加以下代码:

<source lang="c"> Option "EmulateThirdButton" "1" Option "EmulateThirdButtonTimeout" "750" Option "EmulateThirdButtonMoveThreshold" "100" </syntaxhighlight>

RPILCD-RIGHT-CLICK.png

  • 保存并退出,重启系统即可

<source lang="c"> reboot </syntaxhighlight>