forked from enlightenment/efl
exactness: cleanup some coding style isues
Just a few that I spotted when looking over the code. Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Differential Revision: https://phab.enlightenment.org/D11290
This commit is contained in:
parent
248f3d9d6b
commit
ea3c30ca1e
|
@ -104,7 +104,8 @@ _action_specific_info_get(const Exactness_Action *act, char output[1024])
|
|||
sprintf(output, "Direction %d Z %d", t->direction, t->z);
|
||||
break;
|
||||
}
|
||||
case EXACTNESS_ACTION_MULTI_UP: case EXACTNESS_ACTION_MULTI_DOWN:
|
||||
case EXACTNESS_ACTION_MULTI_UP:
|
||||
case EXACTNESS_ACTION_MULTI_DOWN:
|
||||
{
|
||||
Exactness_Action_Multi_Event *t = act->data;
|
||||
if (!t->d)
|
||||
|
@ -124,7 +125,8 @@ _action_specific_info_get(const Exactness_Action *act, char output[1024])
|
|||
t->d, t->x, t->y, t->rad, t->radx, t->rady, t->pres, t->ang, t->fx, t->fy);
|
||||
break;
|
||||
}
|
||||
case EXACTNESS_ACTION_KEY_UP: case EXACTNESS_ACTION_KEY_DOWN:
|
||||
case EXACTNESS_ACTION_KEY_UP:
|
||||
case EXACTNESS_ACTION_KEY_DOWN:
|
||||
{
|
||||
Exactness_Action_Key_Down_Up *t = act->data;
|
||||
sprintf(output, "Keyname %s Key %s String %s Compose %s Keycode %d",
|
||||
|
@ -172,11 +174,13 @@ _are_scenario_entries_different(Exactness_Action *act1, Exactness_Action *act2)
|
|||
{
|
||||
case EXACTNESS_ACTION_MOUSE_WHEEL:
|
||||
return !!memcmp(act1->data, act2->data, sizeof(Exactness_Action_Mouse_Wheel));
|
||||
case EXACTNESS_ACTION_MULTI_DOWN: case EXACTNESS_ACTION_MULTI_UP:
|
||||
case EXACTNESS_ACTION_MULTI_DOWN:
|
||||
case EXACTNESS_ACTION_MULTI_UP:
|
||||
return !!memcmp(act1->data, act2->data, sizeof(Exactness_Action_Multi_Event));
|
||||
case EXACTNESS_ACTION_MULTI_MOVE:
|
||||
return !!memcmp(act1->data, act2->data, sizeof(Exactness_Action_Multi_Move));
|
||||
case EXACTNESS_ACTION_KEY_UP: case EXACTNESS_ACTION_KEY_DOWN:
|
||||
case EXACTNESS_ACTION_KEY_UP:
|
||||
case EXACTNESS_ACTION_KEY_DOWN:
|
||||
return !!memcmp(act1->data, act2->data, sizeof(Exactness_Action_Key_Down_Up));
|
||||
case EXACTNESS_ACTION_EFL_EVENT:
|
||||
{
|
||||
|
|
|
@ -135,7 +135,8 @@ _event_pointer_cb(void *data, const Efl_Event *event)
|
|||
if (n_evas >= 0) _add_to_list(evt, n_evas, timestamp, &t, sizeof(t));
|
||||
break;
|
||||
}
|
||||
case EFL_POINTER_ACTION_DOWN: case EFL_POINTER_ACTION_UP:
|
||||
case EFL_POINTER_ACTION_DOWN:
|
||||
case EFL_POINTER_ACTION_UP:
|
||||
{
|
||||
double rad = 0, radx = 0, rady = 0, pres = 0, ang = 0, fx = 0, fy = 0;
|
||||
int b = efl_input_pointer_button_get(evp);
|
||||
|
@ -147,7 +148,8 @@ _event_pointer_cb(void *data, const Efl_Event *event)
|
|||
if (n_evas >= 0) _add_to_list(evt, n_evas, timestamp, &t, sizeof(t));
|
||||
break;
|
||||
}
|
||||
case EFL_POINTER_ACTION_IN: case EFL_POINTER_ACTION_OUT:
|
||||
case EFL_POINTER_ACTION_IN:
|
||||
case EFL_POINTER_ACTION_OUT:
|
||||
{
|
||||
if (n_evas >= 0) _add_to_list(evt, n_evas, timestamp, NULL, 0);
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue