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