mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 15:27:46 -04:00
xenv: allow reading mouse through callbacks, for SDL project
git-svn-id: file:///home/notaz/opt/svn/PicoDrive@947 be3aeb3a-fb24-0410-a615-afba39da0efa
This commit is contained in:
parent
d73e3285b9
commit
1a37501488
2 changed files with 68 additions and 26 deletions
|
@ -1,5 +1,12 @@
|
|||
|
||||
int xenv_init(void);
|
||||
int xenv_update(int *is_down);
|
||||
int xenv_init(int *have_mouse_events);
|
||||
|
||||
/* read events from X, calling key_cb for key, mouseb_cb for mouse button
|
||||
* and mousem_cb for mouse motion events */
|
||||
int xenv_update(int (*key_cb)(void *cb_arg, int kc, int is_pressed),
|
||||
int (*mouseb_cb)(void *cb_arg, int x, int y, int button, int is_pressed),
|
||||
int (*mousem_cb)(void *cb_arg, int x, int y),
|
||||
void *cb_arg);
|
||||
|
||||
void xenv_finish(void);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue