Changeset View
Changeset View
Standalone View
Standalone View
autotests/libinput/mock_libinput.h
Show First 20 Lines • Show All 95 Lines • ▼ Show 20 Line(s) | 31 | struct libinput_device { | |||
---|---|---|---|---|---|
96 | std::array<float, 6> defaultCalibrationMatrix{{1.0f, 0.0f, 0.0f, | 96 | std::array<float, 6> defaultCalibrationMatrix{{1.0f, 0.0f, 0.0f, | ||
97 | 0.0f, 1.0f, 0.0f}}; | 97 | 0.0f, 1.0f, 0.0f}}; | ||
98 | std::array<float, 6> calibrationMatrix{{1.0f, 0.0f, 0.0f, | 98 | std::array<float, 6> calibrationMatrix{{1.0f, 0.0f, 0.0f, | ||
99 | 0.0f, 1.0f, 0.0f}}; | 99 | 0.0f, 1.0f, 0.0f}}; | ||
100 | bool defaultCalibrationMatrixIsIdentity = true; | 100 | bool defaultCalibrationMatrixIsIdentity = true; | ||
101 | 101 | | |||
102 | bool lidSwitch = false; | 102 | bool lidSwitch = false; | ||
103 | bool tabletModeSwitch = false; | 103 | bool tabletModeSwitch = false; | ||
104 | quint32 supportedClickMethods = 0; | ||||
105 | enum libinput_config_click_method defaultClickMethod = LIBINPUT_CONFIG_CLICK_METHOD_NONE; | ||||
106 | enum libinput_config_click_method clickMethod = LIBINPUT_CONFIG_CLICK_METHOD_NONE; | ||||
107 | bool setClickMethodReturnValue = 0; | ||||
104 | }; | 108 | }; | ||
105 | 109 | | |||
106 | struct libinput_event { | 110 | struct libinput_event { | ||
107 | libinput_device *device = nullptr; | 111 | libinput_device *device = nullptr; | ||
108 | libinput_event_type type = LIBINPUT_EVENT_NONE; | 112 | libinput_event_type type = LIBINPUT_EVENT_NONE; | ||
109 | quint32 time = 0; | 113 | quint32 time = 0; | ||
110 | }; | 114 | }; | ||
111 | 115 | | |||
▲ Show 20 Lines • Show All 48 Lines • Show Last 20 Lines |