summaryrefslogtreecommitdiff
path: root/src/examples/ephysics
diff options
context:
space:
mode:
authorJihoon Kim <jihoon48.kim@samsung.com>2014-01-04 13:25:21 +0900
committerJihoon Kim <jihoon48.kim@samsung.com>2014-01-04 13:25:21 +0900
commit3ebc18731fa3712e9f7b29758908bf19fec7df83 (patch)
treea8aa6907b8c4be867689d02331aab1288e68af7e /src/examples/ephysics
parent9637c2b835c4b48b84a4509d57c1af19d1b8608f (diff)
Use key instead of keyname for considering setxkbmap
Diffstat (limited to 'src/examples/ephysics')
-rw-r--r--src/examples/ephysics/test_bouncing_ball.c8
-rw-r--r--src/examples/ephysics/test_velocity.c8
2 files changed, 8 insertions, 8 deletions
diff --git a/src/examples/ephysics/test_bouncing_ball.c b/src/examples/ephysics/test_bouncing_ball.c
index 00736b0..6d2ad6d 100644
--- a/src/examples/ephysics/test_bouncing_ball.c
+++ b/src/examples/ephysics/test_bouncing_ball.c
@@ -13,13 +13,13 @@ _on_keydown(void *data, Evas_Object *obj __UNUSED__, Evas_Object *src __UNUSED__
13 if (type != EVAS_CALLBACK_KEY_UP) 13 if (type != EVAS_CALLBACK_KEY_UP)
14 return EINA_FALSE; 14 return EINA_FALSE;
15 15
16 if (strcmp(ev->keyname, "Up") == 0) 16 if (strcmp(ev->key, "Up") == 0)
17 ephysics_body_central_impulse_apply(body, 0, -300, 0); 17 ephysics_body_central_impulse_apply(body, 0, -300, 0);
18 else if (strcmp(ev->keyname, "Down") == 0) 18 else if (strcmp(ev->key, "Down") == 0)
19 ephysics_body_central_impulse_apply(body, 0, 300, 0); 19 ephysics_body_central_impulse_apply(body, 0, 300, 0);
20 else if (strcmp(ev->keyname, "Right") == 0) 20 else if (strcmp(ev->key, "Right") == 0)
21 ephysics_body_central_impulse_apply(body, 300, 0, 0); 21 ephysics_body_central_impulse_apply(body, 300, 0, 0);
22 else if (strcmp(ev->keyname, "Left") == 0) 22 else if (strcmp(ev->key, "Left") == 0)
23 ephysics_body_central_impulse_apply(body, -300, 0, 0); 23 ephysics_body_central_impulse_apply(body, -300, 0, 0);
24 24
25 return EINA_TRUE; 25 return EINA_TRUE;
diff --git a/src/examples/ephysics/test_velocity.c b/src/examples/ephysics/test_velocity.c
index 785767b..0680204 100644
--- a/src/examples/ephysics/test_velocity.c
+++ b/src/examples/ephysics/test_velocity.c
@@ -24,13 +24,13 @@ _on_keydown(void *data, Evas_Object *obj __UNUSED__, Evas_Object *src __UNUSED__
24 if (type != EVAS_CALLBACK_KEY_UP) 24 if (type != EVAS_CALLBACK_KEY_UP)
25 return EINA_FALSE; 25 return EINA_FALSE;
26 26
27 if (strcmp(ev->keyname, "Up") == 0) 27 if (strcmp(ev->key, "Up") == 0)
28 ephysics_body_central_impulse_apply(body, 0, -300, 0); 28 ephysics_body_central_impulse_apply(body, 0, -300, 0);
29 else if (strcmp(ev->keyname, "Down") == 0) 29 else if (strcmp(ev->key, "Down") == 0)
30 ephysics_body_central_impulse_apply(body, 0, 300, 0); 30 ephysics_body_central_impulse_apply(body, 0, 300, 0);
31 else if (strcmp(ev->keyname, "Right") == 0) 31 else if (strcmp(ev->key, "Right") == 0)
32 ephysics_body_central_impulse_apply(body, 300, 0, 0); 32 ephysics_body_central_impulse_apply(body, 300, 0, 0);
33 else if (strcmp(ev->keyname, "Left") == 0) 33 else if (strcmp(ev->key, "Left") == 0)
34 ephysics_body_central_impulse_apply(body, -300, 0, 0); 34 ephysics_body_central_impulse_apply(body, -300, 0, 0);
35 35
36 return EINA_TRUE; 36 return EINA_TRUE;