diff --git a/BUILD.gn b/BUILD.gn index aa2b7f0625997a59fde6e88d0fff1780faa44728..142f371e1c7999ef58da3574c367cf374f2520a1 100755 --- a/BUILD.gn +++ b/BUILD.gn @@ -13,7 +13,6 @@ import("//build/ohos.gni") import("//foundation/graphic/standard/graphic_config.gni") -import("//foundation/multimodalinput/input/multimodalinput_mini.gni") import("//third_party/wayland_standard/wayland_protocol.gni") group("default") { @@ -28,9 +27,6 @@ group("default") { } weston_defines = [] -if (is_mmi_have_hdf) { - weston_defines += [ "LIBINPUT_THIRD_HDF" ] -} set_defaults("ohos_shared_library") { defines = weston_defines diff --git a/libweston/libinput-device.c b/libweston/libinput-device.c index 7d8c8c871a1f2ac2ed34d05140d7671d0e995b4e..75adeffd3ecae4444e1941a7eab48109eeca5651 100644 --- a/libweston/libinput-device.c +++ b/libweston/libinput-device.c @@ -391,30 +391,20 @@ create_touch_device(struct evdev_device *device) { const struct weston_touch_device_ops *ops = NULL; struct weston_touch_device *touch_device; -#ifndef LIBINPUT_THIRD_HDF struct udev_device *udev_device; -#endif if (libinput_device_config_calibration_has_matrix(device->device)) ops = &touch_calibration_ops; -#ifndef LIBINPUT_THIRD_HDF udev_device = libinput_device_get_udev_device(device->device); if (!udev_device) return NULL; -#endif touch_device = weston_touch_create_touch_device(device->seat->touch_state, -#ifndef LIBINPUT_THIRD_HDF udev_device_get_syspath(udev_device), -#else - "hdf", -#endif device, ops); -#ifndef LIBINPUT_THIRD_HDF udev_device_unref(udev_device); -#endif if (!touch_device) return NULL;