summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorAapo Rantalainen <aapo.rantalainen@gmail.com>2011-03-09 21:32:36 +0100
committerChristoph Brill <egore911@egore911.de>2011-03-09 22:27:04 +0100
commit049d5fb6037b34d94b24cb8300849cf4e3b67437 (patch)
treeb93bdd5fe6e57131309050dca1ae6c83e92cb84c /tools
parentd6fc5be2969b9eede3c0fdd6e03daec4100a8c9f (diff)
Add synaptics orientation support
This patch allows usage of "synclient Orientation=0" (values from 0 to 3). It will rotate the touchpad similar to "xrandr -o". Original patch was extended for alps and ps2. Signed-off-by: Christoph Brill <egore911@egore911.de>
Diffstat (limited to 'tools')
-rw-r--r--tools/synclient.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/synclient.c b/tools/synclient.c
index 9776d23..1ac5502 100644
--- a/tools/synclient.c
+++ b/tools/synclient.c
@@ -143,6 +143,7 @@ static struct Parameter params[] = {
{"AreaRightEdge", PT_INT, 0, 10000, SYNAPTICS_PROP_AREA, 32, 1},
{"AreaTopEdge", PT_INT, 0, 10000, SYNAPTICS_PROP_AREA, 32, 2},
{"AreaBottomEdge", PT_INT, 0, 10000, SYNAPTICS_PROP_AREA, 32, 3},
+ {"Orientation", PT_INT, 0, 3, SYNAPTICS_ORIENTATION, 32, 0},
{ NULL, 0, 0, 0, 0 }
};