mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-03-22 11:30:38 +01:00
Also a long-requested configuration option but it's difficult to expose - depending on the touchpad we utilize different palm detection methods and in theory may add to those at any time as we see fit. Disabling it completely via a configuration option is only going to get us more bug reports because *some* palm detection is likely desired on most setups. So let's allow disabling it in a plugin and thus leave any further palm detection code up to the plugin. Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1249>
34 lines
1.4 KiB
C
34 lines
1.4 KiB
C
/*
|
|
* Copyright © 2025 Red Hat, Inc.
|
|
*
|
|
* Permission is hereby granted, free of charge, to any person obtaining a
|
|
* copy of this software and associated documentation files (the "Software"),
|
|
* to deal in the Software without restriction, including without limitation
|
|
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
|
* and/or sell copies of the Software, and to permit persons to whom the
|
|
* Software is furnished to do so, subject to the following conditions:
|
|
*
|
|
* The above copyright notice and this permission notice (including the next
|
|
* paragraph) shall be included in all copies or substantial portions of the
|
|
* Software.
|
|
*
|
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
|
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
|
* DEALINGS IN THE SOFTWARE.
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
enum libinput_feature {
|
|
LIBINPUT_FEATURE_BUTTON_DEBOUNCING = 1,
|
|
LIBINPUT_FEATURE_WHEEL_DEBOUNCING,
|
|
LIBINPUT_FEATURE_TOUCHPAD_JUMP_DETECTION,
|
|
LIBINPUT_FEATURE_TOUCHPAD_HYSTERESIS,
|
|
LIBINPUT_FEATURE_TOUCHPAD_PALM_DETECTION,
|
|
|
|
_LIBINPUT_N_FEATURES
|
|
};
|