diff options
author | Mavridis Philippe <[email protected]> | 2024-06-01 22:46:37 +0300 |
---|---|---|
committer | Mavridis Philippe <[email protected]> | 2024-09-08 01:34:28 +0300 |
commit | 8bd4c502f65ad364261913150ce59a74c993ca1c (patch) | |
tree | 485989564bf62a75bfcfec1ba72f975ad9369d77 /kcontrol/input/main.cpp | |
parent | e91257a7c75a50b69bde8189f336acc89fa4fec0 (diff) | |
download | tdebase-8bd4c502f65ad364261913150ce59a74c993ca1c.tar.gz tdebase-8bd4c502f65ad364261913150ce59a74c993ca1c.zip |
KControl: add touchpad configuration module
Supports the Libinput and Synaptics drivers, includes documentation and inpupt-touchpad icon.
Signed-off-by: Mavridis Philippe <[email protected]>
Diffstat (limited to 'kcontrol/input/main.cpp')
-rw-r--r-- | kcontrol/input/main.cpp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/kcontrol/input/main.cpp b/kcontrol/input/main.cpp index d72dd0aa6..71d9ec66f 100644 --- a/kcontrol/input/main.cpp +++ b/kcontrol/input/main.cpp @@ -38,6 +38,8 @@ #endif #include "mouse.h" +#include "touchpad_settings.h" +#include "touchpad.h" extern "C" { @@ -91,6 +93,23 @@ extern "C" delete config; } + + TDE_EXPORT TDECModule *create_touchpad(TQWidget *parent, const char *) + { + return new TouchpadConfig(parent, "kcminput"); + } + + TDE_EXPORT void init_touchpad() + { + TouchpadSettings settings; + settings.apply(); + } + + TDE_EXPORT bool test_touchpad() + { + TouchpadSettings settings; + return settings.foundTouchpad(); + } } |