On Jan 6, 2006, at 7:26 AM, Denis Oliver Kropp wrote:
If you really care about saving logic, maybe try: if (id >= DIKI_0 && id <= DIKI_9) { static const DFBInputDeviceKeySymbol shift_number_symbols[10] = { DIKS_PARENTHESIS_RIGHT, DIKS_EXCLAMATION_MARK, DIKS_AT, DIKS_NUMBER_SIGN, DIKS_DOLLAR_SIGN, DIKS_PERCENT_SIGN, DIKS_CIRCUMFLEX_ACCENT, DIKS_AMPERSAND, DIKS_ASTERISK, DIKS_PARENTHESIS_LEFT }; if (shift) return shift_number_symbols[id - DIKI_0]; else return DIKS_0 + id - DIKI_0; } /TomB |
_______________________________________________ directfb-dev mailing list [email protected] http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev
