Main question: How to get the absolute finger position on the touchpad?
I would like to get the absolute position (x, y coordinates) of a finger on a touchpad? I believe it is possible to extract it from the
synaptics-family source code.
Subquestion: How to get the synaptics.h header?
I am trying to get synaptics.h so that I have access to the
SynapticsHwState struct which allows to get the coordinates of a finger touching a touchpad.
This is what I've done so far:
I found out that I need to download linux headers, so I ran:
sudo apt-get install linux-headers-`uname -r`
The I found the header in
/usr/src/linux-headers-3.16.0-4-686-pae/include/config/mouse/ps2/synaptics.hit was EMPTY however.
It turns out that headers in the
include/configpath are usually empty files due to some kernel building optimisations.
I'm stuck. I don't know how to get this header.
Here is a link which might be helpful to answer my question. I don't understand much from what is written there however. I've tried to run
make headers_install from
/usr/src/linux-headers-3.16.0-4-686-pae but I got an error.
My distribution is BunsenLabs i386 Linux (a successor of CrunchBang, Debian based) with a