Changeset View
Changeset View
Standalone View
Standalone View
libinput/device.cpp
Show First 20 Lines • Show All 157 Lines • ▼ Show 20 Line(s) | 152 | Device::Device(libinput_device *device, QObject *parent) | |||
---|---|---|---|---|---|
158 | , m_tabletTool(libinput_device_has_capability(m_device, LIBINPUT_DEVICE_CAP_TABLET_TOOL)) | 158 | , m_tabletTool(libinput_device_has_capability(m_device, LIBINPUT_DEVICE_CAP_TABLET_TOOL)) | ||
159 | #if 0 | 159 | #if 0 | ||
160 | // next libinput version | 160 | // next libinput version | ||
161 | , m_tabletPad(libinput_device_has_capability(m_device, LIBINPUT_DEVICE_CAP_TABLET_PAD)) | 161 | , m_tabletPad(libinput_device_has_capability(m_device, LIBINPUT_DEVICE_CAP_TABLET_PAD)) | ||
162 | #else | 162 | #else | ||
163 | , m_tabletPad(false) | 163 | , m_tabletPad(false) | ||
164 | #endif | 164 | #endif | ||
165 | , m_supportsGesture(libinput_device_has_capability(m_device, LIBINPUT_DEVICE_CAP_GESTURE)) | 165 | , m_supportsGesture(libinput_device_has_capability(m_device, LIBINPUT_DEVICE_CAP_GESTURE)) | ||
166 | #if HAVE_INPUT_1_9 | | |||
167 | , m_switch(libinput_device_has_capability(m_device, LIBINPUT_DEVICE_CAP_SWITCH)) | 166 | , m_switch(libinput_device_has_capability(m_device, LIBINPUT_DEVICE_CAP_SWITCH)) | ||
168 | , m_lidSwitch(m_switch ? libinput_device_switch_has_switch(m_device, LIBINPUT_SWITCH_LID) : false) | 167 | , m_lidSwitch(m_switch ? libinput_device_switch_has_switch(m_device, LIBINPUT_SWITCH_LID) : false) | ||
169 | , m_tabletSwitch(m_switch ? libinput_device_switch_has_switch(m_device, LIBINPUT_SWITCH_TABLET_MODE) : false) | 168 | , m_tabletSwitch(m_switch ? libinput_device_switch_has_switch(m_device, LIBINPUT_SWITCH_TABLET_MODE) : false) | ||
170 | #endif | | |||
171 | , m_name(QString::fromLocal8Bit(libinput_device_get_name(m_device))) | 169 | , m_name(QString::fromLocal8Bit(libinput_device_get_name(m_device))) | ||
172 | , m_sysName(QString::fromLocal8Bit(libinput_device_get_sysname(m_device))) | 170 | , m_sysName(QString::fromLocal8Bit(libinput_device_get_sysname(m_device))) | ||
173 | , m_outputName(QString::fromLocal8Bit(libinput_device_get_output_name(m_device))) | 171 | , m_outputName(QString::fromLocal8Bit(libinput_device_get_output_name(m_device))) | ||
174 | , m_product(libinput_device_get_id_product(m_device)) | 172 | , m_product(libinput_device_get_id_product(m_device)) | ||
175 | , m_vendor(libinput_device_get_id_vendor(m_device)) | 173 | , m_vendor(libinput_device_get_id_vendor(m_device)) | ||
176 | , m_tapFingerCount(libinput_device_config_tap_get_finger_count(m_device)) | 174 | , m_tapFingerCount(libinput_device_config_tap_get_finger_count(m_device)) | ||
177 | , m_defaultTapButtonMap(libinput_device_config_tap_get_default_button_map(m_device)) | 175 | , m_defaultTapButtonMap(libinput_device_config_tap_get_default_button_map(m_device)) | ||
178 | , m_tapButtonMap(libinput_device_config_tap_get_button_map(m_device)) | 176 | , m_tapButtonMap(libinput_device_config_tap_get_button_map(m_device)) | ||
▲ Show 20 Lines • Show All 324 Lines • Show Last 20 Lines |