Changeset View
Changeset View
Standalone View
Standalone View
autotests/libinput/mock_libinput.cpp
Show First 20 Lines • Show All 910 Lines • ▼ Show 20 Line(s) | |||||
911 | { | 911 | { | ||
912 | if (event->type == LIBINPUT_EVENT_TABLET_TOOL_AXIS || | 912 | if (event->type == LIBINPUT_EVENT_TABLET_TOOL_AXIS || | ||
913 | event->type == LIBINPUT_EVENT_TABLET_TOOL_PROXIMITY || | 913 | event->type == LIBINPUT_EVENT_TABLET_TOOL_PROXIMITY || | ||
914 | event->type == LIBINPUT_EVENT_TABLET_TOOL_TIP) { | 914 | event->type == LIBINPUT_EVENT_TABLET_TOOL_TIP) { | ||
915 | return reinterpret_cast<libinput_event_tablet_tool *>(event); | 915 | return reinterpret_cast<libinput_event_tablet_tool *>(event); | ||
916 | } | 916 | } | ||
917 | return nullptr; | 917 | return nullptr; | ||
918 | } | 918 | } | ||
919 | | ||||
920 | int | ||||
921 | libinput_device_tablet_pad_get_num_strips(struct libinput_device *device) | ||||
922 | { | ||||
923 | return device->stripCount; | ||||
924 | } | ||||
925 | | ||||
926 | int | ||||
927 | libinput_device_tablet_pad_get_num_rings(struct libinput_device *device) | ||||
928 | { | ||||
929 | return device->ringCount; | ||||
930 | } | ||||
931 | | ||||
932 | int | ||||
933 | libinput_device_tablet_pad_get_num_buttons(struct libinput_device *device) | ||||
934 | { | ||||
935 | return device->buttonCount; | ||||
936 | } |