Remove LIBINPUT_EVENT_TABLET_PAD_MODE event

Unimplemented and it wasn't supposed to be in the series.

https://lists.freedesktop.org/archives/wayland-devel/2016-June/029376.html

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Carlos Garnacho <carlosg@gnome.org>
This commit is contained in:
Peter Hutterer 2016-07-08 10:35:03 +10:00
parent aa4fd585f4
commit 3c113111fa
5 changed files with 0 additions and 41 deletions

View file

@ -1691,7 +1691,6 @@ libinput_event_destroy(struct libinput_event *event)
case LIBINPUT_EVENT_TABLET_PAD_RING:
case LIBINPUT_EVENT_TABLET_PAD_STRIP:
case LIBINPUT_EVENT_TABLET_PAD_BUTTON:
case LIBINPUT_EVENT_TABLET_PAD_MODE:
libinput_event_tablet_pad_destroy(
libinput_event_get_tablet_pad_event(event));
break;
@ -2613,7 +2612,6 @@ event_type_to_str(enum libinput_event_type type)
CASE_RETURN_STRING(LIBINPUT_EVENT_TABLET_PAD_BUTTON);
CASE_RETURN_STRING(LIBINPUT_EVENT_TABLET_PAD_RING);
CASE_RETURN_STRING(LIBINPUT_EVENT_TABLET_PAD_STRIP);
CASE_RETURN_STRING(LIBINPUT_EVENT_TABLET_PAD_MODE);
CASE_RETURN_STRING(LIBINPUT_EVENT_GESTURE_SWIPE_BEGIN);
CASE_RETURN_STRING(LIBINPUT_EVENT_GESTURE_SWIPE_UPDATE);
CASE_RETURN_STRING(LIBINPUT_EVENT_GESTURE_SWIPE_END);

View file

@ -740,19 +740,6 @@ enum libinput_event_type {
*/
LIBINPUT_EVENT_TABLET_PAD_STRIP,
/**
* A mode change on a device with the @ref
* LIBINPUT_DEVICE_CAP_TABLET_PAD capability.
*
* This event is triggered when the mode is changed through
* external means. The event reflects a mode change (see @ref
* tablet-pad-modes) occurring as a result other than that of
* pressing a mode toggle button.
*
* @note Support for this event is not yet implemented.
*/
LIBINPUT_EVENT_TABLET_PAD_MODE,
LIBINPUT_EVENT_GESTURE_SWIPE_BEGIN = 800,
LIBINPUT_EVENT_GESTURE_SWIPE_UPDATE,
LIBINPUT_EVENT_GESTURE_SWIPE_END,

View file

@ -2150,9 +2150,6 @@ litest_event_type_str(struct libinput_event *event)
case LIBINPUT_EVENT_TABLET_PAD_STRIP:
str = "TABLET PAD STRIP";
break;
case LIBINPUT_EVENT_TABLET_PAD_MODE:
str = "TABLET PAD MODE";
break;
}
return str;
}

View file

@ -130,9 +130,6 @@ print_event_header(struct libinput_event *ev)
case LIBINPUT_EVENT_TABLET_PAD_STRIP:
type = "TABLET_PAD_STRIP";
break;
case LIBINPUT_EVENT_TABLET_PAD_MODE:
type = "TABLET_PAD_MODE";
break;
}
printf("%-7s %-16s ", libinput_device_get_sysname(dev), type);
@ -682,22 +679,6 @@ print_tablet_pad_strip_event(struct libinput_event *ev)
mode);
}
static void
print_tablet_pad_mode_event(struct libinput_event *ev)
{
struct libinput_event_tablet_pad *p = libinput_event_get_tablet_pad_event(ev);
struct libinput_tablet_pad_mode_group *group;
unsigned int mode;
print_event_time(libinput_event_tablet_pad_get_time(p));
group = libinput_event_tablet_pad_get_mode_group(p);
mode = libinput_event_tablet_pad_get_mode(p);
printf("group %d mode %d\n",
libinput_tablet_pad_mode_group_get_index(group),
mode);
}
static int
handle_and_print_events(struct libinput *li)
{
@ -786,9 +767,6 @@ handle_and_print_events(struct libinput *li)
case LIBINPUT_EVENT_TABLET_PAD_STRIP:
print_tablet_pad_strip_event(ev);
break;
case LIBINPUT_EVENT_TABLET_PAD_MODE:
print_tablet_pad_mode_event(ev);
break;
}
libinput_event_destroy(ev);

View file

@ -843,7 +843,6 @@ handle_event_libinput(GIOChannel *source, GIOCondition condition, gpointer data)
case LIBINPUT_EVENT_TABLET_PAD_BUTTON:
case LIBINPUT_EVENT_TABLET_PAD_RING:
case LIBINPUT_EVENT_TABLET_PAD_STRIP:
case LIBINPUT_EVENT_TABLET_PAD_MODE:
break;
}