summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Michael <cpmichael@osg.samsung.com>2016-05-26 11:37:18 -0400
committerChris Michael <cpmichael@osg.samsung.com>2016-05-26 11:37:18 -0400
commitad58478b76d4e158e6f0c26b97577e8dc1dfbce5 (patch)
treead7f96b80c0bf028d8b9e73c0280b6e7ac1c4ef3
parentbf7978d9e37bd1e148f6e86635518c6e30a6d991 (diff)
downloadefl-ad58478b76d4e158e6f0c26b97577e8dc1dfbce5.tar.gz
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 <cpmichael@osg.samsung.com>
-rw-r--r--src/lib/elput/Elput.h19
-rw-r--r--src/lib/elput/elput_evdev.c24
2 files changed, 0 insertions, 43 deletions
diff --git a/src/lib/elput/Elput.h b/src/lib/elput/Elput.h
index 77ba406e30..ce3ad98217 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 cb70c637b9..416c02f45d 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);
-}