forked from enlightenment/efl
EPhysics: fix tests using vertical impulse
SVN revision: 75573
This commit is contained in:
parent
eae54a26ee
commit
aa76c79c86
|
@ -14,9 +14,9 @@ _on_keydown(void *data, Evas_Object *obj __UNUSED__, Evas_Object *src __UNUSED__
|
||||||
return EINA_FALSE;
|
return EINA_FALSE;
|
||||||
|
|
||||||
if (strcmp(ev->keyname, "Up") == 0)
|
if (strcmp(ev->keyname, "Up") == 0)
|
||||||
ephysics_body_central_impulse_apply(body, 0, 300);
|
|
||||||
else if (strcmp(ev->keyname, "Down") == 0)
|
|
||||||
ephysics_body_central_impulse_apply(body, 0, -300);
|
ephysics_body_central_impulse_apply(body, 0, -300);
|
||||||
|
else if (strcmp(ev->keyname, "Down") == 0)
|
||||||
|
ephysics_body_central_impulse_apply(body, 0, 300);
|
||||||
else if (strcmp(ev->keyname, "Right") == 0)
|
else if (strcmp(ev->keyname, "Right") == 0)
|
||||||
ephysics_body_central_impulse_apply(body, 300, 0);
|
ephysics_body_central_impulse_apply(body, 300, 0);
|
||||||
else if (strcmp(ev->keyname, "Left") == 0)
|
else if (strcmp(ev->keyname, "Left") == 0)
|
||||||
|
|
|
@ -23,7 +23,7 @@ _jump(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
|
||||||
elm_object_disabled_set(bt, EINA_TRUE);
|
elm_object_disabled_set(bt, EINA_TRUE);
|
||||||
bodies = ephysics_world_bodies_get(world);
|
bodies = ephysics_world_bodies_get(world);
|
||||||
EINA_LIST_FOREACH(bodies, l, body)
|
EINA_LIST_FOREACH(bodies, l, body)
|
||||||
ephysics_body_central_impulse_apply(body, 0, 300);
|
ephysics_body_central_impulse_apply(body, 0, -300);
|
||||||
eina_list_free(bodies);
|
eina_list_free(bodies);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -25,9 +25,9 @@ _on_keydown(void *data, Evas_Object *obj __UNUSED__, Evas_Object *src __UNUSED__
|
||||||
return EINA_FALSE;
|
return EINA_FALSE;
|
||||||
|
|
||||||
if (strcmp(ev->keyname, "Up") == 0)
|
if (strcmp(ev->keyname, "Up") == 0)
|
||||||
ephysics_body_central_impulse_apply(body, 0, 300);
|
|
||||||
else if (strcmp(ev->keyname, "Down") == 0)
|
|
||||||
ephysics_body_central_impulse_apply(body, 0, -300);
|
ephysics_body_central_impulse_apply(body, 0, -300);
|
||||||
|
else if (strcmp(ev->keyname, "Down") == 0)
|
||||||
|
ephysics_body_central_impulse_apply(body, 0, 300);
|
||||||
else if (strcmp(ev->keyname, "Right") == 0)
|
else if (strcmp(ev->keyname, "Right") == 0)
|
||||||
ephysics_body_central_impulse_apply(body, 300, 0);
|
ephysics_body_central_impulse_apply(body, 300, 0);
|
||||||
else if (strcmp(ev->keyname, "Left") == 0)
|
else if (strcmp(ev->keyname, "Left") == 0)
|
||||||
|
|
Loading…
Reference in New Issue