diff options
author | cmay <cmay@3ae390bd-cb1e-0410-b409-cd5a39f66f1f> | 2006-07-19 01:35:31 +0000 |
---|---|---|
committer | cmay <cmay@3ae390bd-cb1e-0410-b409-cd5a39f66f1f> | 2006-07-19 01:35:31 +0000 |
commit | 364566080217788d3bb6fcb5a0e3186e9010abaf (patch) | |
tree | 2a0e3802df41dbc6f5044fce4b49206e03c79163 /drv_LCD2USB.c | |
parent | 5f4ad727d9cce1cce74b8066737bd20d04d8d53b (diff) | |
download | lcd4linux-364566080217788d3bb6fcb5a0e3186e9010abaf.tar.gz |
[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
Diffstat (limited to 'drv_LCD2USB.c')
-rw-r--r-- | drv_LCD2USB.c | 16 |
1 files changed, 10 insertions, 6 deletions
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 */ |