gp2x.h

00001 /***************************************************************************
00002     begin                : Thu Feb 2 2006
00003     copyright            : (C) 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_GP2X)
00017 
00018 enum {
00019         GP2X_UP = 0x1,           GP2X_LEFT = 0x4,           GP2X_DOWN = 0x10,   GP2X_RIGHT = 0x40,
00020         GP2X_START = (1 << 8),   GP2X_SELECT = (1 << 9),    GP2X_L = (1 << 10), GP2X_R = (1 << 11),
00021         GP2X_A = (1 << 12),      GP2X_B = (1 << 13),        GP2X_X = (1 << 14), GP2X_Y = (1 << 15),
00022         GP2X_VOL_UP = (1 << 23), GP2X_VOL_DOWN = (1 << 22), GP2X_PUSH = (1 << 27)
00023 };
00024 
00025 typedef struct s_video_gp2x_data_s {
00026         int mouse_fd[2];
00027         int keybd_fd[2];
00028         s_thread_t *event_tid;
00029         unsigned short *gp2x_io;
00030 } s_video_gp2x_data_t;
00031 
00032 int s_video_gp2x_kbd_init (s_server_conf_t *cfg);
00033 int s_video_gp2x_kbd_update (s_video_input_data_t *keybd);
00034 void s_video_gp2x_kbd_uninit (void);
00035 
00036 int s_video_gp2x_mouse_init (s_server_conf_t *cfg);
00037 void s_video_gp2x_mouse_setcursor (S_MOUSE_CURSOR c);
00038 void s_video_gp2x_mouse_draw (void);
00039 int s_video_gp2x_mouse_update (s_video_input_data_t *mouse);
00040 void s_video_gp2x_mouse_uninit (void);
00041 
00042 void s_video_gp2x_server_goto_back (void);
00043 void s_video_gp2x_server_comefrom_back (void);
00044 void s_video_gp2x_server_restore (void);
00045 void s_video_gp2x_server_uninit (void);
00046 int s_video_gp2x_server_init (s_server_conf_t *cfg);
00047 void s_video_gp2x_server_surface_update (s_rect_t *coor);
00048 void s_video_gp2x_server_fullscreen (void);
00049 
00050 void * s_video_gp2x_event_parse (void *arg);
00051 
00052 #endif /* VIDEO_GP2X */

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