static void fs_emu_queue_netplay_input_event(int input_event) { if (input_event == 0) { fs_log("WARNING: tried to queue input event 0\n"); return; } fs_mutex_lock(g_input_event_mutex); g_queue_push_head(g_input_event_queue, FS_INT_TO_POINTER(input_event)); fs_mutex_unlock(g_input_event_mutex); }
static void post_video_event(int event) { if (fse_drivers()) { // printf("FSE_DRIVERS: ignoring post_video_event\n"); } else { fs_mutex_lock(g_video_event_mutex); g_queue_push_head(g_video_event_queue, FS_INT_TO_POINTER(event)); fs_mutex_unlock(g_video_event_mutex); } }
static void post_video_event(int event) { #ifdef FS_EMU_DRIVERS // printf("FS_EMU_DRIVERS: ignoring post_video_event\n"); #else fs_mutex_lock(g_video_event_mutex); g_queue_push_head(g_video_event_queue, FS_INT_TO_POINTER(event)); fs_mutex_unlock(g_video_event_mutex); #endif }
static void post_video_event(int event) { fs_mutex_lock(g_video_event_mutex); g_queue_push_head(g_video_event_queue, FS_INT_TO_POINTER(event)); fs_mutex_unlock(g_video_event_mutex); }