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 <cpmichael@osg.samsung.com>
* @li @ref Elput_Init_Group
* @li @ref Elput_Manager_Group
* @li @ref Elput_Input_Group
- * @li @ref Elput_Device_Group
*
*/
*/
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
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);
-}