ecore-drm2: Add API function to calibrate input devices
This adds a new API function that Ecore_Evas can call to calibrate input devices given size of the output Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
This commit is contained in:
parent
da8bcbc7c6
commit
0416aa6bf3
|
@ -268,6 +268,18 @@ EAPI unsigned int *ecore_drm2_device_crtcs_get(Ecore_Drm2_Device *device, int *n
|
||||||
*/
|
*/
|
||||||
EAPI void ecore_drm2_device_screen_size_range_get(Ecore_Drm2_Device *device, int *minw, int *minh, int *maxw, int *maxh);
|
EAPI void ecore_drm2_device_screen_size_range_get(Ecore_Drm2_Device *device, int *minw, int *minh, int *maxw, int *maxh);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Calibrate any input devices for given screen size
|
||||||
|
*
|
||||||
|
* @param device
|
||||||
|
* @param w
|
||||||
|
* @param h
|
||||||
|
*
|
||||||
|
* @ingroup Ecore_Drm2_Device_Group
|
||||||
|
* @since 1.18
|
||||||
|
*/
|
||||||
|
EAPI void ecore_drm2_device_calibrate(Ecore_Drm2_Device *device, int w, int h);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @defgroup Ecore_Drm2_Output_Group Drm output functions
|
* @defgroup Ecore_Drm2_Output_Group Drm output functions
|
||||||
*
|
*
|
||||||
|
|
|
@ -289,3 +289,11 @@ ecore_drm2_device_screen_size_range_get(Ecore_Drm2_Device *device, int *minw, in
|
||||||
if (maxw) *maxw = device->max.width;
|
if (maxw) *maxw = device->max.width;
|
||||||
if (maxh) *maxh = device->max.height;
|
if (maxh) *maxh = device->max.height;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
EAPI void
|
||||||
|
ecore_drm2_device_calibrate(Ecore_Drm2_Device *device, int w, int h)
|
||||||
|
{
|
||||||
|
EINA_SAFETY_ON_NULL_RETURN(device);
|
||||||
|
|
||||||
|
elput_input_devices_calibrate(device->em, w, h);
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue