[Swfdec] libswfdec/swfdec_as_strings.c libswfdec/swfdec_player.c
Pekka Lampila
medar at kemper.freedesktop.org
Sun Oct 14 07:58:33 PDT 2007
libswfdec/swfdec_as_strings.c | 1 +
libswfdec/swfdec_player.c | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
New commits:
commit 708448156a9973c48b2f86ec3f8f6ece4e2ab8fa
Author: Pekka Lampila <pekka.lampila at iki.fi>
Date: Sun Oct 14 17:58:14 2007 +0300
Call onKeyDown and onKeyUp on Key object, not Stage object
diff --git a/libswfdec/swfdec_as_strings.c b/libswfdec/swfdec_as_strings.c
index d9b85cc..89431a3 100644
--- a/libswfdec/swfdec_as_strings.c
+++ b/libswfdec/swfdec_as_strings.c
@@ -396,6 +396,7 @@ const char swfdec_as_strings[] =
SWFDEC_AS_CONSTANT_STRING ("autoSize")
SWFDEC_AS_CONSTANT_STRING ("wordWrap")
SWFDEC_AS_CONSTANT_STRING ("border")
+ SWFDEC_AS_CONSTANT_STRING ("Key")
/* add more here */
;
diff --git a/libswfdec/swfdec_player.c b/libswfdec/swfdec_player.c
index 099d9ca..32254ab 100644
--- a/libswfdec/swfdec_player.c
+++ b/libswfdec/swfdec_player.c
@@ -1031,7 +1031,7 @@ swfdec_player_do_handle_key (SwfdecPlayer *player, guint keycode, guint characte
} else {
player->key_pressed[keycode / 8] &= ~(1 << keycode % 8);
}
- swfdec_player_broadcast (player, SWFDEC_AS_STR_Stage, down ? SWFDEC_AS_STR_onKeyDown : SWFDEC_AS_STR_onKeyUp);
+ swfdec_player_broadcast (player, SWFDEC_AS_STR_Key, down ? SWFDEC_AS_STR_onKeyDown : SWFDEC_AS_STR_onKeyUp);
return TRUE;
}
More information about the Swfdec
mailing list