sdl.h

00001 /***************************************************************************
00002     begin                : Mon Feb 21 2005
00003     copyright            : (C) 2005 - 2006 by Alper Akcan
00004     email                : distchx@yahoo.com
00005  ***************************************************************************/
00006 
00007 /***************************************************************************
00008  *                                                                         *
00009  *   This program is free software; you can redistribute it and/or modify  *
00010  *   it under the terms of the GNU Lesser General Public License as        *
00011  *   published by the Free Software Foundation; either version 2.1 of the  *
00012  *   License, or (at your option) any later version.                       *
00013  *                                                                         *
00014  ***************************************************************************/
00015 
00016 #if defined(VIDEO_SDL)
00017 
00018 #include <SDL.h>
00019 
00020 typedef struct s_video_sdl_data_s {
00021         int mouse_fd[2];
00022         int keybd_fd[2];
00023         int screen_shm_mid;
00024         SDL_Surface *screen;
00025         s_thread_t *event_tid;
00026         S_KEYCODE_CODE keymap[SDLK_LAST];
00027 } s_video_sdl_data_t;
00028 
00029 int SDL_PrivateQuit(void);
00030 
00031 void * s_video_sdl_event_parse (void *);
00032 
00033 int s_video_sdl_kbd_init (s_server_conf_t *cfg);
00034 int s_video_sdl_kbd_update (s_video_input_data_t *keybd);
00035 void s_video_sdl_kbd_uninit (void);
00036 
00037 int s_video_sdl_mouse_init (s_server_conf_t *cfg);
00038 int s_video_sdl_mouse_update (s_video_input_data_t *mouse);
00039 void s_video_sdl_mouse_uninit (void);
00040 
00041 void s_video_sdl_server_uninit (void);
00042 int s_video_sdl_server_init (s_server_conf_t *cfg);
00043 void s_video_sdl_server_surface_update (s_rect_t *coor);
00044 void s_video_sdl_server_fullscreen (void);
00045 
00046 #endif /* VIDEO_SDL */

Generated on Wed Dec 27 17:53:06 2006 for xynth-0.8.40 by  doxygen 1.4.7