mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 23:37:46 -04:00
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:
parent
eef1557e17
commit
bd34c5a85c
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