eobish

view src/fblibimp.h @ 4:ce0548d24918

mostly works
author John Tsiombikas <nuclear@member.fsf.org>
date Sun, 18 Jan 2015 13:30:30 +0200
parents cdbcae5b3b98
children
line source
1 #ifndef FBLIBIMP_H_
2 #define FBLIBIMP_H_
4 #include "fblib.h"
6 struct callbacks {
7 int (*keyb)(int, int, void*);
8 int (*button)(int, int, int, int, void*);
9 int (*motion)(int, int, void*);
11 void *keyb_data, *button_data, *motion_data;
12 } fb_cb;
14 struct input_state {
15 unsigned char key[256];
16 unsigned char mbutton[8];
17 int mx, my;
18 } fb_inp;
20 int fb_width, fb_height, fb_bpp;
22 #endif /* FBLIBIMP_H_ */