devilhorns pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=ad58478b76d4e158e6f0c26b97577e8dc1dfbce5
commit ad58478b76d4e158e6f0c26b97577e8dc1dfbce5 Author: Chris Michael <[email protected]> Date: Thu May 26 11:37:18 2016 -0400 elput: Remove badly named API This patch removes an API function that basically "tried to do too much". This was supposed to be used for centering mouse pointer and calibrating an input device based on output size. Remove this silliness. It would be better to have one API for calibrating, and a separate API for pointer centering. These new APIs will come shortly in pending patches. @fix Signed-off-by: Chris Michael <[email protected]> --- src/lib/elput/Elput.h | 19 ------------------- src/lib/elput/elput_evdev.c | 24 ------------------------ 2 files changed, 43 deletions(-) diff --git a/src/lib/elput/Elput.h b/src/lib/elput/Elput.h index 77ba406..ce3ad98 100644 --- a/src/lib/elput/Elput.h +++ b/src/lib/elput/Elput.h @@ -117,7 +117,6 @@ EAPI extern int ELPUT_EVENT_SESSION_ACTIVE; * @li @ref Elput_Init_Group * @li @ref Elput_Manager_Group * @li @ref Elput_Input_Group - * @li @ref Elput_Device_Group * */ @@ -340,24 +339,6 @@ EAPI const Eina_List *elput_input_devices_get(Elput_Seat *seat); */ EAPI void elput_input_pointer_max_set(Elput_Manager *manager, int maxw, int maxh); -/** - * @defgroup Elput_Device_Group - * - * Functions that deal with input devices. - */ - -/** - * Set size of output for input device calibration - * - * @param device - * @param w - * @param h - * - * @ingroup Elput_Device_Group - * @since 1.18 - */ -EAPI void elput_device_output_size_set(Elput_Device *device, int w, int h); - # endif # undef EAPI diff --git a/src/lib/elput/elput_evdev.c b/src/lib/elput/elput_evdev.c index cb70c63..416c02f 100644 --- a/src/lib/elput/elput_evdev.c +++ b/src/lib/elput/elput_evdev.c @@ -1344,27 +1344,3 @@ _evdev_touch_get(Elput_Seat *seat) if (seat->count.touch) return seat->touch; return NULL; } - -EAPI void -elput_device_output_size_set(Elput_Device *device, int w, int h) -{ - EINA_SAFETY_ON_NULL_RETURN(device); - - device->ow = w; - device->oh = h; - - if (libinput_device_has_capability(device->device, - LIBINPUT_DEVICE_CAP_POINTER)) - { - Elput_Pointer *ptr; - - ptr = _evdev_pointer_get(device->seat); - if (ptr) - { - ptr->x = device->ow / 2; - ptr->y = device->oh / 2; - } - } - - _evdev_device_calibrate(device); -} --
