X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=linux%2Fxenv.h;h=6abda1950fed917dc080be8a51819cfd74173739;hb=323db7293410a1245667e01dda1514aef3327c38;hp=cd1bc70493daa483fb5150d7d121d28d8b5160d3;hpb=477ba3f2eca85b08ef3c1a9d1392698c1793403a;p=libpicofe.git diff --git a/linux/xenv.h b/linux/xenv.h index cd1bc70..6abda19 100644 --- a/linux/xenv.h +++ b/linux/xenv.h @@ -1,5 +1,10 @@ -int xenv_init(int *have_mouse_events, const char *window_title); +#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 */