mirror of
https://github.com/RaySollium99/libpicofe.git
synced 2025-09-07 07:38:04 -04:00
xenv: allow to specify event filter
git-svn-id: file:///home/notaz/opt/svn/PicoDrive/platform@949 be3aeb3a-fb24-0410-a615-afba39da0efa
This commit is contained in:
parent
477ba3f2ec
commit
f620fa7ade
2 changed files with 23 additions and 14 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue