X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fvideo%2Fomapdss%2Flinux%2Fxenv.h;fp=src%2Fvideo%2Fomapdss%2Flinux%2Fxenv.h;h=6abda1950fed917dc080be8a51819cfd74173739;hb=090bcb85b9cebd193299c9e93f4de8c5888094f4;hp=4c5281c365f8242506fae7ba58b84cf11766ba04;hpb=b260fb56d8eb049e5dce95a92b5c1189ea29f8b4;p=sdl_omap.git diff --git a/src/video/omapdss/linux/xenv.h b/src/video/omapdss/linux/xenv.h index 4c5281c..6abda19 100644 --- a/src/video/omapdss/linux/xenv.h +++ b/src/video/omapdss/linux/xenv.h @@ -1,5 +1,10 @@ -int xenv_init(int *have_mouse_events); +#define XENV_CAP_KEYS (1<<0) +#define XENV_CAP_MOUSE (1<<1) + +/* xenv_flags specify if we need keys and mouse, + * on return, flag is removed if input is not available */ +int xenv_init(int *xenv_flags, const char *window_title); /* read events from X, calling key_cb for key, mouseb_cb for mouse button * and mousem_cb for mouse motion events */ @@ -8,5 +13,6 @@ int xenv_update(int (*key_cb)(void *cb_arg, int kc, int is_pressed), int (*mousem_cb)(void *cb_arg, int x, int y), void *cb_arg); +int xenv_minimize(void); void xenv_finish(void);