From: Leif L. <le...@sm...> - 2006-11-11 01:54:13
|
Hi again, Responding to myself as I've now found my problem, not actually related to the configuration at all: The keycodes defined in drv_CF_keypad() in drv_Crystalfontz.c do not match the ones produced by my Crystalfontz CFA635. Attaching a patch that fixes this problem for me. If this is due to some incompatibility between different Crystalfontz models, I guess this will need to be solved in a prettier way. regards / Leif --- lcd4linux/drv_Crystalfontz.c.org 2006-11-11 01:24:26.000000000 +0000 +++ lcd4linux/drv_Crystalfontz.c 2006-11-11 01:47:10.000000000 +0000 @@ -712,27 +712,27 @@ static int drv_CF_keypad(const int num) val = WIDGET_KEY_RELEASED; switch (num) { case 1: - case 8: + case 7: val += WIDGET_KEY_UP; break; case 2: - case 9: + case 8: val += WIDGET_KEY_DOWN; break; case 3: - case 10: + case 9: val += WIDGET_KEY_LEFT; break; case 4: - case 11: + case 10: val += WIDGET_KEY_RIGHT; break; case 5: - case 12: + case 11: val += WIDGET_KEY_CONFIRM; break; - case 7: - case 13: + case 6: + case 12: val += WIDGET_KEY_CANCEL; break; } |