Subversion Repositories shark

Compare Revisions

Ignore whitespace Rev 1033 → Rev 1034

/shark/trunk/drivers/input/include/drivers/shark_keyb26.h
71,6 → 71,11
BYTE status;
} KEY_EVT;
 
#define set_keyevt(k,a,c,f,s) (k)->ascii = a, \
(k)->scan = c, \
(k)->flag = f, \
(k)->status = s
 
#define isReleased(k) ( ((k)->status & KEY_RELEASED) != 0 )
#define isPressed(k) ( ((k)->status & KEY_PRESSED) != 0 )
#define isRepeated(k) ( ((k)->status & KEY_REPEATED) != 0 )
120,7 → 125,8
 
BYTE keyb_getch(BYTE wait);
int keyb_getcode(KEY_EVT *k, BYTE wait);
void keyb_hook(KEY_EVT k, void (*f)(KEY_EVT *k), unsigned char l);
int keyb_hook(KEY_EVT k, void (*f)(KEY_EVT *k), unsigned char l);
int keyb_unhook(int index);
void keyb_enable(void);
void keyb_disable(void);
int keyb_set_map(unsigned char m);