summaryrefslogtreecommitdiff
path: root/src/lib/elput
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 /src/lib/elput
parentbf7978d9e37bd1e148f6e86635518c6e30a6d991 (diff)
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>
Diffstat (limited to 'src/lib/elput')
-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;
117 * @li @ref Elput_Init_Group 117 * @li @ref Elput_Init_Group
118 * @li @ref Elput_Manager_Group 118 * @li @ref Elput_Manager_Group
119 * @li @ref Elput_Input_Group 119 * @li @ref Elput_Input_Group
120 * @li @ref Elput_Device_Group
121 * 120 *
122 */ 121 */
123 122
@@ -340,24 +339,6 @@ EAPI const Eina_List *elput_input_devices_get(Elput_Seat *seat);
340 */ 339 */
341EAPI void elput_input_pointer_max_set(Elput_Manager *manager, int maxw, int maxh); 340EAPI void elput_input_pointer_max_set(Elput_Manager *manager, int maxw, int maxh);
342 341
343/**
344 * @defgroup Elput_Device_Group
345 *
346 * Functions that deal with input devices.
347 */
348
349/**
350 * Set size of output for input device calibration
351 *
352 * @param device
353 * @param w
354 * @param h
355 *
356 * @ingroup Elput_Device_Group
357 * @since 1.18
358 */
359EAPI void elput_device_output_size_set(Elput_Device *device, int w, int h);
360
361# endif 342# endif
362 343
363# undef EAPI 344# 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)
1344 if (seat->count.touch) return seat->touch; 1344 if (seat->count.touch) return seat->touch;
1345 return NULL; 1345 return NULL;
1346} 1346}
1347
1348EAPI void
1349elput_device_output_size_set(Elput_Device *device, int w, int h)
1350{
1351 EINA_SAFETY_ON_NULL_RETURN(device);
1352
1353 device->ow = w;
1354 device->oh = h;
1355
1356 if (libinput_device_has_capability(device->device,
1357 LIBINPUT_DEVICE_CAP_POINTER))
1358 {
1359 Elput_Pointer *ptr;
1360
1361 ptr = _evdev_pointer_get(device->seat);
1362 if (ptr)
1363 {
1364 ptr->x = device->ow / 2;
1365 ptr->y = device->oh / 2;
1366 }
1367 }
1368
1369 _evdev_device_calibrate(device);
1370}