|
| 1 | +From 9d515d154921e0c08337a50c8c616a327310d4c2 Mon Sep 17 00:00:00 2001 |
| 2 | +From: Andrey Lebedev <andrey@lebedev.lt> |
| 3 | +Date: Sun, 5 Jul 2020 22:58:38 +0300 |
| 4 | +Subject: [PATCH] Disable touch-screen auto-detection |
| 5 | + |
| 6 | +When touch screen is detected, XCSoar renders larger buttons and other |
| 7 | +screen controls. Larger control size is more preferrable for Openvario |
| 8 | +even on machines with no touch screen is installed: it is easier to |
| 9 | +click larger controls with the stick control and labels acually fit the |
| 10 | +buttons with the larger font sizes. |
| 11 | +--- |
| 12 | + src/Event/Poll/LibInput/LibInputHandler.hpp | 2 +- |
| 13 | + 1 file changed, 1 insertion(+), 1 deletion(-) |
| 14 | + |
| 15 | +diff --git a/src/Event/Poll/LibInput/LibInputHandler.hpp b/src/Event/Poll/LibInput/LibInputHandler.hpp |
| 16 | +index 0ca1d8f512..b9eeb3e724 100644 |
| 17 | +--- a/src/Event/Poll/LibInput/LibInputHandler.hpp |
| 18 | ++++ b/src/Event/Poll/LibInput/LibInputHandler.hpp |
| 19 | +@@ -53,7 +53,7 @@ class LibInputHandler final { |
| 20 | + /** |
| 21 | + * The number of pointer input devices, touch screens ans keyboards. |
| 22 | + */ |
| 23 | +- unsigned n_pointers = 0, n_touch_screens = 0, n_keyboards = 0; |
| 24 | ++ unsigned n_pointers = 0, n_touch_screens = 1, n_keyboards = 0; |
| 25 | + |
| 26 | + public: |
| 27 | + explicit LibInputHandler(boost::asio::io_context &io_context, |
| 28 | +-- |
| 29 | +2.25.1 |
| 30 | + |
0 commit comments