A generic touchscreen calibration program for X.Org
Revision | 41e0d3ab1f0c91f1297c817c63c400bbf6b8f365 (tree) |
---|---|
Time | 2012-06-27 06:19:26 |
Author | Tias Guns <tias@ulys...> |
Commiter | Tias Guns |
remove invertX/Y from evdev config outputting
invertX/Y is automatically handled by xf86ScaleAxis
avoid outputting it so users don't manually change it
(it is still set/unset in dynamic calibration when needed though)
@@ -574,8 +574,6 @@ bool CalibratorEvdev::output_xorgconfd(const XYinfo new_axys) | ||
574 | 574 | printf(" Option \"Calibration\" \"%d %d %d %d\"\n", |
575 | 575 | new_axys.x.min, new_axys.x.max, new_axys.y.min, new_axys.y.max); |
576 | 576 | printf(" Option \"SwapAxes\" \"%d\"\n", new_axys.swap_xy); |
577 | - printf(" Option \"InvertX\" \"%d\"\n", new_axys.x.invert); | |
578 | - printf(" Option \"InvertY\" \"%d\"\n", new_axys.y.invert); | |
579 | 577 | printf("EndSection\n"); |
580 | 578 | |
581 | 579 | if (not_sysfs_name) |
@@ -597,8 +595,6 @@ bool CalibratorEvdev::output_hal(const XYinfo new_axys) | ||
597 | 595 | <merge key=\"input.x11_options.calibration\" type=\"string\">%d %d %d %d</merge>\n" |
598 | 596 | , sysfs_name, new_axys.x.min, new_axys.x.max, new_axys.y.min, new_axys.y.max); |
599 | 597 | printf(" <merge key=\"input.x11_options.swapaxes\" type=\"string\">%d</merge>\n", new_axys.swap_xy); |
600 | - printf(" <merge key=\"input.x11_options.invertx\" type=\"string\">%d</merge>\n", new_axys.x.invert); | |
601 | - printf(" <merge key=\"input.x11_options.inverty\" type=\"string\">%d</merge>\n", new_axys.y.invert); | |
602 | 598 | printf("</match>\n"); |
603 | 599 | |
604 | 600 | if (not_sysfs_name) |
@@ -613,7 +609,6 @@ bool CalibratorEvdev::output_xinput(const XYinfo new_axys) | ||
613 | 609 | printf(" Install the 'xinput' tool and copy the command(s) below in a script that starts with your X session\n"); |
614 | 610 | printf(" xinput set-int-prop \"%s\" \"Evdev Axis Calibration\" 32 %d %d %d %d\n", device_name, new_axys.x.min, new_axys.x.max, new_axys.y.min, new_axys.y.max); |
615 | 611 | printf(" xinput set-int-prop \"%s\" \"Evdev Axes Swap\" 8 %d\n", device_name, new_axys.swap_xy); |
616 | - printf(" xinput set-int-prop \"%s\" \"Evdev Axis Inversion\" %d %d\n", device_name, new_axys.x.invert, new_axys.y.invert); | |
617 | 612 | |
618 | 613 | return true; |
619 | 614 | } |