eobish

view src/fblibimp.h @ 2:cdbcae5b3b98

added fblib
author John Tsiombikas <nuclear@member.fsf.org>
date Sun, 18 Jan 2015 03:16:37 +0200
parents
children ce0548d24918
line source
1 #ifndef FBLIBIMP_H_
2 #define FBLIBIMP_H_
4 #include "fblib.h"
6 struct callbacks {
7 void (*keyb)(int, int, void*);
8 void (*button)(int, int, int, int, void*);
9 void (*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_ */