pspdev.h

00001 /***************************************************************************
00002     begin                : Thu Sep 22 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_PSPDEV)
00017 
00018 #include <psptypes.h>
00019 #include <pspdebug.h>
00020 #include <pspge.h>
00021 #include <pspctrl.h>
00022 #include <pspkernel.h>
00023 #include <psputils.h>
00024 #include <pspdisplay.h>
00025 #include <pspgu.h>
00026 
00027 typedef struct s_video_pspdev_data_s {
00028         int mouse_fd[2];
00029         int keybd_fd[2];
00030         s_thread_t *event_tid;
00031         void *vram_base;
00032 } s_video_pspdev_data_t;
00033 
00034 void s_video_pspdev_mouse_cursor_init (void);
00035 void s_video_pspdev_mouse_setcursor (S_MOUSE_CURSOR c);
00036 void s_video_pspdev_mouse_draw (void);
00037 
00038 void * s_video_pspdev_event_parse (void *);
00039 
00040 int s_video_pspdev_kbd_init (s_server_conf_t *cfg);
00041 int s_video_pspdev_kbd_update (s_video_input_data_t *keybd);
00042 void s_video_pspdev_kbd_uninit (void);
00043 
00044 int s_video_pspdev_mouse_init (s_server_conf_t *cfg);
00045 void s_video_pspdev_mouse_setcursor (S_MOUSE_CURSOR c);
00046 void s_video_pspdev_mouse_draw (void);
00047 int s_video_pspdev_mouse_update (s_video_input_data_t *mouse);
00048 void s_video_pspdev_mouse_uninit (void);
00049 
00050 void s_video_pspdev_server_uninit (void);
00051 int s_video_pspdev_server_init (s_server_conf_t *cfg);
00052 void s_video_pspdev_server_surface_update (s_rect_t *coor);
00053 
00054 #endif /* VIDEO_PSPDEV */

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