⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 event.c.svn-base

📁 A Flash Player with ActionScript support. Write in C and C++. It have two part, one is Player and an
💻 SVN-BASE
字号:
#include <stdio.h>#include <glib.h>#include <assert.h>#include "define.h"#include "player_pub.h"#include "base_types.h"#include "instance.h"#include "swf_file_pub.h"#include "spliter_pub.h"#include "render_pub.h"#include "movie_clips_ins.h"#include "movie_clips_def.h"#include "button_ins.h"#include "button_def.h"#include "action.h"#include "event.h"#include "action_fortest.h"#include "xwin_event.h"#if WITH_DMALLOC#include <dmalloc.h>#endifextern player_t      *player_p;void event_dispatcher(void) {    swf_file_t		*swf_p = player_p->_level0_p;    GSList		*p;    //    to_exec_t		to_exec;    assert(pthread_mutex_lock(&player_p->eventq_mutex)==0);    while (player_p->eventq_p) {        //     to_exec.node_p = NULL;        switch (((struct flash_event*)player_p->eventq_p->data)->event_type) {        case EVENT_KEY_PRESS:            event_key(player_p->eventq_p->data);            break;        case EVENT_BUTTON_RELEASE:        case EVENT_BUTTON_PRESS:        case EVENT_MOTION_NOTIFY:            event_mouse(swf_p->_root_p,player_p->eventq_p->data);            break;        };        /*               if (to_exec.node_p) {                   to_exec_t 	*a_p;                   a_p = g_new0(to_exec_t,1);                   *a_p = to_exec;                   player_p->actionq_p = g_slist_append(player_p->actionq_p,a_p);               };        */        p = player_p->eventq_p;        player_p->eventq_p = g_slist_remove_link(player_p->eventq_p,p);        free(p->data);        g_slist_free_1(p);    };    //    printf("out event_dispatcher\n");    assert(pthread_mutex_unlock(&player_p->eventq_mutex)==0);};

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -