X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=src%2Fvideo%2Fomapdss%2Fomapsdl.h;h=b59533e1bce9a3acd1bb8e2e34c06c9af0c45c54;hb=f641fccb7413775feab03ea268cc503cfb47b9b7;hp=ab94f3fe1413cd95211b9573fc56c1b865a3a3bc;hpb=83b5751b446734b65e83ed4210b3c5cba3435866;p=sdl_omap.git diff --git a/src/video/omapdss/omapsdl.h b/src/video/omapdss/omapsdl.h index ab94f3f..b59533e 100644 --- a/src/video/omapdss/omapsdl.h +++ b/src/video/omapdss/omapsdl.h @@ -1,3 +1,9 @@ +/* + * (C) Gražvydas "notaz" Ignotas, 2010 + * + * This work is licensed under the terms of the GNU LGPL, version 2.1 or later. + * See the COPYING file in the top-level directory. + */ #define ARRAY_SIZE(x) (sizeof(x) / sizeof(x[0])) @@ -11,12 +17,26 @@ #define dbg(...) #endif +struct SDL_PrivateVideoData { + struct vout_fbdev *fbdev; + void *saved_layer; + unsigned int oshide_done:1; +}; + +int osdl_video_set_mode(struct SDL_PrivateVideoData *pdata, int width, int height, int bpp); +void *osdl_video_flip(struct SDL_PrivateVideoData *pdata); +void osdl_video_finish(struct SDL_PrivateVideoData *pdata); + void omapsdl_input_init(void); void omapsdl_input_bind(const char *kname, const char *sdlname); -int omapsdl_input_get_events(int timeout, - int (*cb)(void *cb_arg, int sdl_kc, int is_pressed), void *cb_arg); +int omapsdl_input_get_events(int timeout_ms, + int (*key_cb)(void *cb_arg, int sdl_kc, int is_pressed), + int (*ts_cb)(void *cb_arg, int x, int y, unsigned int pressure), + void *cb_arg); +void omapsdl_input_finish(void); void omapsdl_config(void); +void omapsdl_config_from_env(void); /* functions for standalone */ void do_clut(void *dest, void *src, unsigned short *pal, int count);