ecore_drm2: Add API function to set pointer rotation
This commit is contained in:
parent
2382b4ab73
commit
0caf4c7730
|
@ -70,6 +70,7 @@ EAPI void ecore_drm2_device_preferred_depth_get(Ecore_Drm2_Device *dev, int *dep
|
|||
EAPI void ecore_drm2_device_screen_size_range_get(Ecore_Drm2_Device *dev, int *minw, int *minh, int *maxw, int *maxh);
|
||||
EAPI const Eina_List *ecore_drm2_device_crtcs_get(Ecore_Drm2_Device *dev);
|
||||
EAPI void ecore_drm2_device_pointer_max_set(Ecore_Drm2_Device *dev, int w, int h);
|
||||
EAPI Eina_Bool ecore_drm2_device_pointer_rotation_set(Ecore_Drm2_Device *dev, int rotation);
|
||||
|
||||
/* Display API functions */
|
||||
EAPI char *ecore_drm2_display_name_get(Ecore_Drm2_Display *disp);
|
||||
|
|
|
@ -385,3 +385,11 @@ ecore_drm2_device_pointer_max_set(Ecore_Drm2_Device *dev, int w, int h)
|
|||
EINA_SAFETY_ON_NULL_RETURN(dev->em);
|
||||
elput_input_pointer_max_set(dev->em, w, h);
|
||||
}
|
||||
|
||||
EAPI Eina_Bool
|
||||
ecore_drm2_device_pointer_rotation_set(Ecore_Drm2_Device *dev, int rotation)
|
||||
{
|
||||
EINA_SAFETY_ON_NULL_RETURN_VAL(dev, EINA_FALSE);
|
||||
EINA_SAFETY_ON_NULL_RETURN_VAL(dev->em, EINA_FALSE);
|
||||
return elput_input_pointer_rotation_set(dev->em, rotation);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue