mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-01-08 22:10:16 +01:00
Move CASE_RETURN_STRING to libinput-util.h
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
f5abded2e5
commit
bec07c4198
6 changed files with 2 additions and 11 deletions
|
|
@ -43,8 +43,6 @@
|
|||
* as-is.
|
||||
*/
|
||||
|
||||
#define CASE_RETURN_STRING(a) case a: return #a;
|
||||
|
||||
static inline const char*
|
||||
middlebutton_state_to_str(enum evdev_middlebutton_state state)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -46,8 +46,6 @@
|
|||
* The state machine only affects the soft button area code.
|
||||
*/
|
||||
|
||||
#define CASE_RETURN_STRING(a) case a: return #a;
|
||||
|
||||
static inline const char*
|
||||
button_state_to_str(enum button_state state) {
|
||||
switch(state) {
|
||||
|
|
|
|||
|
|
@ -32,8 +32,6 @@
|
|||
|
||||
#include "evdev-mt-touchpad.h"
|
||||
|
||||
#define CASE_RETURN_STRING(a) case a: return #a
|
||||
|
||||
/* Use a reasonably large threshold until locked into scrolling mode, to
|
||||
avoid accidentally locking in scrolling mode when trying to use the entire
|
||||
touchpad to move the pointer. The user can wait for the timeout to trigger
|
||||
|
|
|
|||
|
|
@ -32,8 +32,6 @@
|
|||
#define DEFAULT_GESTURE_SWITCH_TIMEOUT 100 /* ms */
|
||||
#define DEFAULT_GESTURE_2FG_SCROLL_TIMEOUT 1000 /* ms */
|
||||
|
||||
#define CASE_RETURN_STRING(a) case a: return #a
|
||||
|
||||
static inline const char*
|
||||
gesture_state_to_str(enum tp_gesture_2fg_state state)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -35,8 +35,6 @@
|
|||
|
||||
#include "evdev-mt-touchpad.h"
|
||||
|
||||
#define CASE_RETURN_STRING(a) case a: return #a
|
||||
|
||||
#define DEFAULT_TAP_TIMEOUT_PERIOD 180
|
||||
#define DEFAULT_DRAG_TIMEOUT_PERIOD 300
|
||||
#define DEFAULT_TAP_MOVE_THRESHOLD TP_MM_TO_DPI_NORMALIZED(3)
|
||||
|
|
@ -98,7 +96,6 @@ tap_event_to_str(enum tap_event event)
|
|||
}
|
||||
return NULL;
|
||||
}
|
||||
#undef CASE_RETURN_STRING
|
||||
|
||||
static void
|
||||
tp_tap_notify(struct tp_dispatch *tp,
|
||||
|
|
|
|||
|
|
@ -41,6 +41,8 @@
|
|||
/* The HW DPI rate we normalize to before calculating pointer acceleration */
|
||||
#define DEFAULT_MOUSE_DPI 1000
|
||||
|
||||
#define CASE_RETURN_STRING(a) case a: return #a;
|
||||
|
||||
void
|
||||
set_logging_enabled(int enabled);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue