forked from enlightenment/efl
Elm glayer: Added config value to multi-touch rotation.
Patch by Bluezery. SVN revision: 66368
This commit is contained in:
parent
cb4aeb780e
commit
b1f771a890
|
@ -44,6 +44,7 @@ group "Elm_Config" struct {
|
|||
value "glayer_zoom_finger_factor" double: 1.0;
|
||||
value "glayer_zoom_wheel_factor" double: 0.05;
|
||||
value "glayer_zoom_distance_tolerance" double: 1.0;
|
||||
value "glayer_rotate_finger_enable" uchar: 0;
|
||||
value "glayer_rotate_angular_tolerance" double: 0.034906585;
|
||||
value "glayer_line_min_length" double: 1.0;
|
||||
value "glayer_line_distance_tolerance" double: 3.0;
|
||||
|
|
|
@ -48,6 +48,7 @@ group "Elm_Config" struct {
|
|||
value "glayer_zoom_finger_factor" double: 1.0;
|
||||
value "glayer_zoom_wheel_factor" double: 0.05;
|
||||
value "glayer_zoom_distance_tolerance" double: 1.0;
|
||||
value "glayer_rotate_finger_enable" uchar: 0;
|
||||
value "glayer_rotate_angular_tolerance" double: 0.034906585;
|
||||
value "glayer_line_min_length" double: 1.0;
|
||||
value "glayer_line_distance_tolerance" double: 3.0;
|
||||
|
|
|
@ -48,6 +48,7 @@ group "Elm_Config" struct {
|
|||
value "glayer_zoom_finger_factor" double: 1.0;
|
||||
value "glayer_zoom_wheel_factor" double: 0.05;
|
||||
value "glayer_zoom_distance_tolerance" double: 1.0;
|
||||
value "glayer_rotate_finger_enable" uchar: 0;
|
||||
value "glayer_rotate_angular_tolerance" double: 0.034906585;
|
||||
value "glayer_line_min_length" double: 1.0;
|
||||
value "glayer_line_distance_tolerance" double: 3.0;
|
||||
|
|
|
@ -322,6 +322,7 @@ _desc_init(void)
|
|||
ELM_CONFIG_VAL(D, T, glayer_zoom_finger_factor, T_DOUBLE);
|
||||
ELM_CONFIG_VAL(D, T, glayer_zoom_wheel_factor, T_DOUBLE);
|
||||
ELM_CONFIG_VAL(D, T, glayer_zoom_distance_tolerance, T_DOUBLE);
|
||||
ELM_CONFIG_VAL(D, T, glayer_rotate_finger_enable, T_UCHAR);
|
||||
ELM_CONFIG_VAL(D, T, glayer_rotate_angular_tolerance, T_DOUBLE);
|
||||
ELM_CONFIG_VAL(D, T, glayer_line_min_length, T_DOUBLE);
|
||||
ELM_CONFIG_VAL(D, T, glayer_line_distance_tolerance, T_DOUBLE);
|
||||
|
@ -892,6 +893,7 @@ _config_load(void)
|
|||
_elm_config->glayer_zoom_finger_factor = 1.0;
|
||||
_elm_config->glayer_zoom_wheel_factor = 0.05;
|
||||
_elm_config->glayer_zoom_distance_tolerance = 1.0; /* 1 times elm_finger_size_get() */
|
||||
_elm_config->glayer_rotate_finger_enable = EINA_FALSE;
|
||||
_elm_config->glayer_rotate_angular_tolerance = 0.034906585; /* Represents 2 DEG */
|
||||
_elm_config->glayer_line_min_length = 1.0; /* 1 times elm_finger_size_get() */
|
||||
_elm_config->glayer_line_distance_tolerance = 3.0; /* 3 times elm_finger_size_get() */
|
||||
|
|
|
@ -3116,7 +3116,7 @@ _event_process(void *data, Evas_Object *obj __UNUSED__,
|
|||
if (IS_TESTED(ELM_GESTURE_ZOOM))
|
||||
_zoom_with_wheel_test(data, event_info, event_type, ELM_GESTURE_ZOOM);
|
||||
|
||||
if (IS_TESTED(ELM_GESTURE_ROTATE))
|
||||
if (_elm_config->glayer_rotate_finger_enable && IS_TESTED(ELM_GESTURE_ROTATE))
|
||||
_rotate_test(data, pe, event_info, event_type, ELM_GESTURE_ROTATE);
|
||||
|
||||
if (_get_event_flag(event_info, event_type) & EVAS_EVENT_FLAG_ON_HOLD)
|
||||
|
|
|
@ -153,6 +153,7 @@ struct _Elm_Config
|
|||
double glayer_zoom_finger_factor;
|
||||
double glayer_zoom_wheel_factor;
|
||||
double glayer_zoom_distance_tolerance;
|
||||
double glayer_rotate_finger_enable;
|
||||
double glayer_rotate_angular_tolerance;
|
||||
double glayer_line_min_length;
|
||||
double glayer_line_distance_tolerance;
|
||||
|
|
Loading…
Reference in New Issue