开发者

Touchpad access in Linux

开发者 https://www.devze.com 2022-12-22 12:37 出处:网络
The problem is: How to access x,y,z coordinates of my touchpad? Now that SHMConfig is disabled by default, I\'ve found out that, in order to do it, I need to access a file from /dev/input/. Those fil

The problem is: How to access x,y,z coordinates of my touchpad?

Now that SHMConfig is disabled by default, I've found out that, in order to do it, I need to access a file from /dev/input/. Those files are, sadly,开发者_如何学JAVA readable by root only. Is there any way to access the touchpad while in user-mode?


Usually you access the pointing devices via the X11 system and the X11 XInput extension. Only the X11 server will access the /dev/input file. The X11 server will allow many applications to share the input devices in a controlled manner.

You can find out what pointing devices are available with List X11 input devices and you can change which device is the (current) X pointer with Change the pointer device.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号