eobish
annotate src/fblibimp.h @ 6:c02579c0a6c6
macos fix
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Mon, 19 Jan 2015 04:05:47 +0200 |
parents | cdbcae5b3b98 |
children |
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@4 | 7 int (*keyb)(int, int, void*); |
nuclear@4 | 8 int (*button)(int, int, int, int, void*); |
nuclear@4 | 9 int (*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_ */ |