forked from enlightenment/efl
Part 1 of ravenlocks mouse acceleration patch that provides the ecore_x
functions for setting mouse accel. SVN revision: 28821
This commit is contained in:
parent
d1cd35897d
commit
75f052383e
|
@ -1418,7 +1418,8 @@ EAPI void ecore_x_window_save_set_add(Ecore_X_Window win);
|
|||
EAPI void ecore_x_window_save_set_del(Ecore_X_Window win);
|
||||
EAPI Ecore_X_Window *ecore_x_window_children_get(Ecore_X_Window win, int *num);
|
||||
|
||||
|
||||
EAPI int ecore_x_pointer_control_set(int accel_num, int accel_denom, int threshold);
|
||||
EAPI int ecore_x_pointer_control_get(int *accel_num, int *accel_denom, int *threshold);
|
||||
EAPI int ecore_x_pointer_grab(Ecore_X_Window win);
|
||||
EAPI int ecore_x_pointer_confine_grab(Ecore_X_Window win);
|
||||
EAPI void ecore_x_pointer_ungrab(void);
|
||||
|
|
|
@ -1088,6 +1088,21 @@ ecore_x_window_children_get(Ecore_X_Window win, int *num)
|
|||
return windows;
|
||||
}
|
||||
|
||||
EAPI int
|
||||
ecore_x_pointer_control_set(int accel_num, int accel_denom, int threshold)
|
||||
{
|
||||
return XChangePointerControl(_ecore_x_disp, 1, 1,
|
||||
accel_num, accel_denom, threshold);
|
||||
}
|
||||
|
||||
|
||||
EAPI int
|
||||
ecore_x_pointer_control_get(int *accel_num, int *accel_denom, int *threshold)
|
||||
{
|
||||
return XGetPointerControl(_ecore_x_disp,
|
||||
accel_num, accel_denom, threshold);
|
||||
}
|
||||
|
||||
EAPI int
|
||||
ecore_x_pointer_grab(Ecore_X_Window win)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue