#define KEY_DEL 257 #define KEY_CLEAR 263 #define KEY_MODE 266 #define KEY_HOME 277 #define KEY_CATALOG 278 #define KEY_2ND 4096 #define KEY_0 '0' #define KEY_1 '1' #define KEY_2 '2' #define KEY_3 '3' #define KEY_4 '4' #define KEY_5 '5' #define KEY_6 '6' #define KEY_7 '7' #define KEY_8 '8' #define KEY_9 '9' #define K_UP (CALCULATOR ? _rowread(0x3FE)&0x20 : _rowread(0x7E)&0x01 ) #define K_DOWN (CALCULATOR ? _rowread(0x3FE)&0x80 : _rowread(0x7E)&0x04 ) #define K_RIGHT (CALCULATOR ? _rowread(0x3FE)&0x40 : _rowread(0x7E)&0x08 ) #define K_LEFT (CALCULATOR ? _rowread(0x3FE)&0x10 : _rowread(0x7E)&0x02 ) #define K_ENTER (CALCULATOR ? (_rowread(0x3BF)&0x40 || _rowread(0x1FF)&0x02) : _rowread(0x7D)&0x01 ) //[ENTER2] ou [ENTER1] pour ti92 #define K_ESC (CALCULATOR ? _rowread(0x2FF)&0x40 : _rowread(0x3F)&0x01 ) #define K_HOME (CALCULATOR ? _rowread(0x3FE)&0x08 : _rowread(0x5F)&0x40 ) //[HAND] pour la ti92 #define K_APPS (CALCULATOR ? _rowread(0x37F)&0x40 : _rowread(0x5F)&0x01 ) #define K_MODE (CALCULATOR ? _rowread(0x2FF)&0x20 : _rowread(0x6F)&0x40 ) #define K_CLEAR (CALCULATOR ? _rowread(0x37F)&0x20 : _rowread(0x7D)&0x40 ) #define K_CATALOG (CALCULATOR ? _rowread(0x3BF)&0x10 : _rowread(0x77)&0x40 ) //[LN] pour la 92 #define K_DEL (CALCULATOR ? _rowread(0x2FF)&0x01 : _rowread(0x7B)&0x40 ) #define K_2ND (CALCULATOR ? _rowread(0x3FE)&0x01 : _rowread(0x7E)&0x10 ) #define K_DIAM (CALCULATOR ? _rowread(0x3FE)&0x02 : _rowread(0x7E)&0x40 ) #define K_PLUS (CALCULATOR ? _rowread(0x2FF)&0x10 : _rowread(0x7D)&0x02 ) #define K_MOINS (CALCULATOR ? _rowread(0x1FF)&0x01 : _rowread(0x7D)&0x04 ) #define K_0 (CALCULATOR ? _rowread(0x1FF)&0x20 : _rowread(0x6F)&0x01 ) #define K_1 (CALCULATOR ? _rowread(0x3FD)&0x20 : _rowread(0x6F)&0x02 ) #define K_2 (CALCULATOR ? _rowread(0x3FD)&0x40 : _rowread(0x77)&0x02 ) #define K_3 (CALCULATOR ? _rowread(0x3FD)&0x80 : _rowread(0x7B)&0x02 ) #define K_4 (CALCULATOR ? _rowread(0x3FB)&0x20 : _rowread(0x6F)&0x04 ) #define K_5 (CALCULATOR ? _rowread(0x3FB)&0x40 : _rowread(0x77)&0x04 ) #define K_6 (CALCULATOR ? _rowread(0x3FB)&0x80 : _rowread(0x7B)&0x04 ) #define K_7 (CALCULATOR ? _rowread(0x3F7)&0x20 : _rowread(0x6F)&0x08 ) #define K_8 (CALCULATOR ? _rowread(0x3F7)&0x40 : _rowread(0x77)&0x08 ) #define K_9 (CALCULATOR ? _rowread(0x3F7)&0x80 : _rowread(0x7B)&0x08 ) #define K_F1 (CALCULATOR ? _rowread(0x3BF)&0x10 : _rowread(0x5F)&0x80 ) #define K_F2 (CALCULATOR ? _rowread(0x3EF)&0x10 : _rowread(0x6F)&0x80 ) #define K_F3 (CALCULATOR ? _rowread(0x3FB)&0x10 : _rowread(0x77)&0x80 ) #define K_F4 (CALCULATOR ? _rowread(0x1FF)&0x10 : _rowread(0x7B)&0x80 ) #define K_F5 (CALCULATOR ? _rowread(0x37F)&0x10 : _rowread(0x7D)&0x80 ) #define K_S (CALCULATOR ? _rowread(0x3FD)&0x04 : _rowread(0x7B)&0x02 ) #define K_L (CALCULATOR ? _rowread(0x2FF)&0x04 : _rowread(0x6F)&0x04 )