We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
I have a matrix for the keyboard layout in my program as follows:
code unsigned char buttons[BUTTON_COUNT][KEY_TABLE_WIDTH] = { {'8', 'u', 'ü', 'v', EMPTY_CODE}, {'7', 'r', 's', 'ş', 't'}, {'6', 'ö', 'p', 'q', EMPTY_CODE}, {'5', 'l', 'm', 'n', 'o'}, {'1', 'a', 'b', 'c', 'ç'}, {'2', 'd', 'e', 'f', EMPTY_CODE}, {'3', 'g', 'ğ', 'h', 'ı'}, {'4', 'i', 'j', 'k', EMPTY_CODE}, {'9', 'w', 'x', 'y', 'z'}, {'0', ' ', ':', '-', EMPTY_CODE}, {RIGHT_ARROW,EMPTY_CODE, EMPTY_CODE, EMPTY_CODE, EMPTY_CODE}, {LEFT_ARROW, EMPTY_CODE, EMPTY_CODE, EMPTY_CODE, EMPTY_CODE}, {ESC, EMPTY_CODE, EMPTY_CODE, EMPTY_CODE, EMPTY_CODE}, {DEL, EMPTY_CODE, EMPTY_CODE, EMPTY_CODE, EMPTY_CODE}, {CAPS, EMPTY_CODE, EMPTY_CODE, EMPTY_CODE, EMPTY_CODE}, {ENTER, EMPTY_CODE, EMPTY_CODE, EMPTY_CODE, EMPTY_CODE} };
Jon, I know that it sounds weird. And in fact there is no good code. :) The function may be a bit long to post here, so I can email it to you if you send an email to bahrio at yahoo dot com.