From 364566080217788d3bb6fcb5a0e3186e9010abaf Mon Sep 17 00:00:00 2001 From: cmay Date: Wed, 19 Jul 2006 01:35:31 +0000 Subject: [lcd4linux @ 2006-07-19 01:35:31 by cmay] Renamed keypad direction names to avoid conflict with Curses library defs. Added keypad support to Curses display driver. git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@672 3ae390bd-cb1e-0410-b409-cd5a39f66f1f --- drv_LCD2USB.c | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'drv_LCD2USB.c') diff --git a/drv_LCD2USB.c b/drv_LCD2USB.c index fd48c2e..0c4b6bc 100644 --- a/drv_LCD2USB.c +++ b/drv_LCD2USB.c @@ -1,4 +1,4 @@ -/* $Id: drv_LCD2USB.c,v 1.10 2006/04/09 14:17:50 reinelt Exp $ +/* $Id: drv_LCD2USB.c,v 1.11 2006/07/19 01:35:31 cmay Exp $ * * driver for USB2LCD display interface * see http://www.harbaum.org/till/lcd2usb for schematics @@ -24,6 +24,10 @@ * * * $Log: drv_LCD2USB.c,v $ + * Revision 1.11 2006/07/19 01:35:31 cmay + * Renamed keypad direction names to avoid conflict with Curses library defs. + * Added keypad support to Curses display driver. + * * Revision 1.10 2006/04/09 14:17:50 reinelt * autoconf/library fixes, image and graphic display inversion * @@ -481,15 +485,15 @@ static int drv_L2U_keypad(const int num) /* check for key press event */ if (num & 0x80) - val = KEY_PRESSED; + val = WIDGET_KEY_PRESSED; else - val = KEY_RELEASED; + val = WIDGET_KEY_RELEASED; if ((num & 0x7f) == 0) - val += KEY_UP; + val += WIDGET_KEY_UP; if ((num & 0x7f) == 1) - val += KEY_DOWN; + val += WIDGET_KEY_DOWN; return val; } @@ -613,7 +617,7 @@ int drv_L2U_init(const char *section, const int quiet) int asc255bug; int ret; - info("%s: %s", Name, "$Revision: 1.10 $"); + info("%s: %s", Name, "$Revision: 1.11 $"); /* display preferences */ XRES = 5; /* pixel width of one char */ -- cgit v1.2.3