added event actions (by simulating keyboard input) for global animations
[rocksndiamonds.git] / src / anim.c
index d81a0746edde6052861a2dfa1145b3a7c3c9f6ce..0a278aa35cb36a97983be9ea1cc7b62934bb3799 100644 (file)
@@ -14,6 +14,7 @@
 #include "anim.h"
 #include "main.h"
 #include "tools.h"
+#include "events.h"
 #include "screens.h"
 
 
@@ -1452,7 +1453,8 @@ static boolean DoGlobalAnim_EventAction(struct GlobalAnimPartControlInfo *part)
     return FALSE;
 
   boolean action_executed = (DoGadgetAction(anim_event_action) ||
-                            DoScreenAction(anim_event_action));
+                            DoScreenAction(anim_event_action) ||
+                            DoKeysymAction(anim_event_action));
 
   // check if further actions are allowed to be executed
   if (part->control_info.style & STYLE_MULTIPLE_ACTIONS)