ecore-drm2: Add API function to set left-handed mouse mode
This commit adds an API function used to set a mouse to be left-handed @feature Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
This commit is contained in:
parent
5535c049cd
commit
7b5af2f0df
|
@ -205,6 +205,19 @@ EAPI void ecore_drm2_device_pointer_xy_get(Ecore_Drm2_Device *device, int *x, in
|
||||||
*/
|
*/
|
||||||
EAPI void ecore_drm2_device_pointer_warp(Ecore_Drm2_Device *device, int x, int y);
|
EAPI void ecore_drm2_device_pointer_warp(Ecore_Drm2_Device *device, int x, int y);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set a left handed mode for the given device
|
||||||
|
*
|
||||||
|
* @param device
|
||||||
|
* @param left
|
||||||
|
*
|
||||||
|
* @return EINA_TRUE on success, EINA_FALSE otherwise
|
||||||
|
*
|
||||||
|
* @ingroup Ecore_Drm2_Device_Group
|
||||||
|
* @since 1.18
|
||||||
|
*/
|
||||||
|
EAPI Eina_Bool ecore_drm2_device_pointer_left_handed_set(Ecore_Drm2_Device *device, Eina_Bool left);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set which window is to be used for input events
|
* Set which window is to be used for input events
|
||||||
*
|
*
|
||||||
|
|
|
@ -240,6 +240,14 @@ ecore_drm2_device_pointer_warp(Ecore_Drm2_Device *device, int x, int y)
|
||||||
elput_input_pointer_xy_set(device->em, NULL, x, y);
|
elput_input_pointer_xy_set(device->em, NULL, x, y);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
EAPI Eina_Bool
|
||||||
|
ecore_drm2_device_pointer_left_handed_set(Ecore_Drm2_Device *device, Eina_Bool left)
|
||||||
|
{
|
||||||
|
EINA_SAFETY_ON_NULL_RETURN_VAL(device, EINA_FALSE);
|
||||||
|
|
||||||
|
return elput_input_pointer_left_handed_set(device->em, NULL, left);
|
||||||
|
}
|
||||||
|
|
||||||
EAPI void
|
EAPI void
|
||||||
ecore_drm2_device_window_set(Ecore_Drm2_Device *device, unsigned int window)
|
ecore_drm2_device_window_set(Ecore_Drm2_Device *device, unsigned int window)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue