notaz.gp2x.de
/
libpicofe.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add plat_mem_set_exec()
[libpicofe.git]
/
linux
/
xenv.h
diff --git
a/linux/xenv.h
b/linux/xenv.h
index
4c5281c
..
ae76f7d
100644
(file)
--- a/
linux/xenv.h
+++ b/
linux/xenv.h
@@
-1,5
+1,12
@@
+#ifndef LIBPICOFE_XENV_H
+#define LIBPICOFE_XENV_H
-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 */
/* read events from X, calling key_cb for key, mouseb_cb for mouse button
* and mousem_cb for mouse motion events */
@@
-8,5
+15,7
@@
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 (*mousem_cb)(void *cb_arg, int x, int y),
void *cb_arg);
+int xenv_minimize(void);
void xenv_finish(void);
void xenv_finish(void);
+#endif // LIBPICOFE_XENV_H