From 91f24c2c4523729fa5a85c91a6b90cb8de712e4b Mon Sep 17 00:00:00 2001 From: hackbard Date: Tue, 13 May 2003 17:02:27 +0000 Subject: [PATCH] added more key id's & void pointer to lattice structs --- dfbapi.c | 5 +++++ dfbapi.h | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/dfbapi.c b/dfbapi.c index 4144783..2ff070e 100644 --- a/dfbapi.c +++ b/dfbapi.c @@ -6,6 +6,7 @@ */ #include +#include #include "dfbapi.h" /* two dimensional lattice */ @@ -301,6 +302,10 @@ int scan_event(d3_lattice *d3_l,int *x,int *y,int *z,int *q,int *esc) 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; diff --git a/dfbapi.h b/dfbapi.h index 3692601..c51bfe4 100644 --- a/dfbapi.h +++ b/dfbapi.h @@ -22,6 +22,8 @@ typedef struct __d2_lattice 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; @@ -38,6 +40,8 @@ typedef struct __d3_lattice 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; -- 2.20.1