*/
#include <stdio.h>
+#include <directfb.h>
#include "dfbapi.h"
/* two dimensional lattice */
if(ke.key_id==DIKI_RIGHT && *x!=d3_l->max_x-1) *x+=1;
if(ke.key_id==DIET_DOWN && *y!=0) *y-=1;
if(ke.key_id==DIET_UP && *y!=d3_l->max_y-1) *y+=1;
+ if(ke.key_id==DIET_PAGE_DOWN && *z!=0) *z-=1;
+ if(ke.key_id==DIET_PAGE_UP && *z!=d3_l->mac_z-1) *z+=1;
+ if(ke.key_id==DIKI_Q) *quit=1;
+ if(ke.key_id==DIKI_ESCAPE) *esc=1;
}
return 1;
int info_w,info_h;
int font_h;
unsigned char *status; /* status&1 -> red, else blue */
+ int *extra; /* store extra values */
+ void *v_ptr; /* void ptr, for any use */
IDirectFB *dfb;
IDirectFBSurface *p_surface;
IDirectFBFont *font;
int info_w,info_h;
int font_h;
unsigned char *status; /* status&1 -> red, else blue */
+ int *extra /* store extra values */
+ void *v_ptr; /* void ptr, for any use */
IDirectFB *dfb;
IDirectFBSurface *p_surface;
IDirectFBFont *font;