forked from enlightenment/efl
ecore-drm2: Add API to allow setting pointer acceleration profile
Small patch to allow setting pointer acceleration profile (for wayland) from within Enlightenment. ref T4736 @feature Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
parent
b43f6c14dd
commit
474da25165
|
@ -283,6 +283,17 @@ EAPI void ecore_drm2_device_pointer_max_set(Ecore_Drm2_Device *device, int w, in
|
|||
*/
|
||||
EAPI void ecore_drm2_device_pointer_accel_speed_set(Ecore_Drm2_Device *device, double speed);
|
||||
|
||||
/**
|
||||
* Set pointer acceleration profile
|
||||
*
|
||||
* @param device
|
||||
* @param profile
|
||||
*
|
||||
* @ingroup Ecore_Drm2_Device_Group
|
||||
* @since 1.21
|
||||
*/
|
||||
EAPI void ecore_drm2_device_pointer_accel_profile_set(Ecore_Drm2_Device *device, uint32_t profile);
|
||||
|
||||
/**
|
||||
* Set pointer value rotation
|
||||
*
|
||||
|
|
|
@ -782,6 +782,14 @@ ecore_drm2_device_pointer_accel_speed_set(Ecore_Drm2_Device *device, double spee
|
|||
elput_input_pointer_accel_speed_set(device->em, NULL, speed);
|
||||
}
|
||||
|
||||
EAPI void
|
||||
ecore_drm2_device_pointer_accel_profile_set(Ecore_Drm2_Device *device, uint32_t profile)
|
||||
{
|
||||
EINA_SAFETY_ON_NULL_RETURN(device);
|
||||
|
||||
elput_input_pointer_accel_profile_set(device->em, NULL, profile);
|
||||
}
|
||||
|
||||
EAPI void
|
||||
ecore_drm2_device_window_set(Ecore_Drm2_Device *device, unsigned int window)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue