Subversion Repositories shark

Compare Revisions

Ignore whitespace Rev 665 → Rev 666

/shark/trunk/drivers/input/include/drivers/shark_keyb26.h
71,16 → 71,16
BYTE status;
} KEY_EVT;
 
#define isRepeated(k) (k.status == KEY_REPEATED)
#define isReleased(k) (k.status == KEY_RELEASED)
#define isRepeated(k) ((k).status == KEY_REPEATED)
#define isReleased(k) ((k).status == KEY_RELEASED)
 
#define isScanCode(k) (k.flag & SCAN_BIT)
#define isLeftShift(k) (k.flag & SHFL_BIT)
#define isRightShift(k) (k.flag & SHFR_BIT)
#define isLeftCtrl(k) (k.flag & CNTL_BIT)
#define isRightCtrl(k) (k.flag & CNTR_BIT)
#define isLeftAlt(k) (k.flag & ALTL_BIT)
#define isRightAlt(k) (k.flag & ALTR_BIT)
#define isScanCode(k) ((k).flag & SCAN_BIT)
#define isLeftShift(k) ((k).flag & SHFL_BIT)
#define isRightShift(k) ((k).flag & SHFR_BIT)
#define isLeftCtrl(k) ((k).flag & CNTL_BIT)
#define isRightCtrl(k) ((k).flag & CNTR_BIT)
#define isLeftAlt(k) ((k).flag & ALTL_BIT)
#define isRightAlt(k) ((k).flag & ALTR_BIT)
 
#define keyb_getchar() keyb_getch(BLOCK)