4. XFree 3.x

在 XFree 3.x 中,额外的指针设备,例如鼠标或平板电脑,通过使用 Xinput 部分来定义。主鼠标像往常一样定义。
Section "Pointer"
    Protocol    "PS/2"
    Device      "/dev/mouse"
EndSection
在上面的例子中,这是一个常规的三键 PS/2 鼠标,也适用于指点杆。 现在,对于 USB 鼠标
    Section "Xinput"
  SubSection "Mouse"
    DeviceName "USB Mice"
    Protocol "IMPS/2"
    ZAxisMapping 4 5
    Port "/dev/input/mice"
    Alwayscore
  EndSubSection
EndSection
我的鼠标是一个滚轮鼠标,因此协议是 IMPS/2。 还需要 ZAxisMapping 行才能使滚轮工作。 我还希望鼠标始终与另一个鼠标一起工作,这可以通过 AlwaysCore 选项来实现。 如果,例如,这是一个串口鼠标,那么 Port 将读取 "/dev/ttyS0" 作为 COM1