xenv: allow to specify event filter

git-svn-id: file:///home/notaz/opt/svn/PicoDrive@949 be3aeb3a-fb24-0410-a615-afba39da0efa
This commit is contained in:
notaz 2012-04-09 21:31:45 +00:00
parent eef1557e17
commit bd34c5a85c
2 changed files with 23 additions and 14 deletions

View file

@ -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,
* 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 */