xenv: allow reading mouse through callbacks, for SDL project
[libpicofe.git] / linux / xenv.h
CommitLineData
838a76d4 1
c7b78b94 2int xenv_init(int *have_mouse_events);
3
4/* read events from X, calling key_cb for key, mouseb_cb for mouse button
5 * and mousem_cb for mouse motion events */
6int xenv_update(int (*key_cb)(void *cb_arg, int kc, int is_pressed),
7 int (*mouseb_cb)(void *cb_arg, int x, int y, int button, int is_pressed),
8 int (*mousem_cb)(void *cb_arg, int x, int y),
9 void *cb_arg);
10
838a76d4 11void xenv_finish(void);
12