/* $Id: drv_generic_keypad.c,v 1.3 2006/02/22 15:59:39 cmay Exp $ * * generic driver helper for keypads * * Copyright (C) 2006 Chris Maj * Copyright (C) 2006 The LCD4Linux Team * * This file is part of LCD4Linux. * * LCD4Linux is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2, or (at your option) * any later version. * * LCD4Linux is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * * * $Log: drv_generic_keypad.c,v $ * Revision 1.3 2006/02/22 15:59:39 cmay * removed KEYPADSIZE cruft per harbaum's suggestion * * Revision 1.2 2006/02/21 15:55:59 cmay * removed new update function for keypad, consolidated it with draw * * Revision 1.1 2006/02/21 05:50:34 reinelt * keypad support from Cris Maj * * */ #include #include "debug.h" #include "widget.h" #include "widget_keypad.h" #include "drv_generic_keypad.h" static char *Section = NULL; static char *Driver = NULL; int (*drv_generic_keypad_real_press) () = NULL; int drv_generic_keypad_init(const char *section, const char *driver) { WIDGET_CLASS wc; Section = (char *) section; Driver = (char *) driver; /* register keypad widget */ wc = Widget_Keypad; widget_register(&wc); return 0; } int drv_generic_keypad_press(const int num) { WIDGET *w; int val = 0; if (drv_generic_keypad_real_press) val = drv_generic_keypad_real_press(num); w = widget_find(WIDGET_TYPE_KEYPAD, &val); if (w && w->class->draw) w->class->draw(w); return val; } int drv_generic_keypad_quit(void) { return 0; } value='author'>author
AgeCommit message (Collapse)AuthorFilesLines
2011-09-08update scan files for fi-*Christoph Pfister51-10/+61
submitted by crope iki.fi
2011-09-08update scan file for es-DonostiaChristoph Pfister1-11/+10
submitted by tlaurikainen gmail.com
2011-09-08update scan file for Thor-1.0WChristoph Pfister1-1/+30
submitted by harald.overas gmail.com
2011-09-08update scan file for hr-AllChristoph Pfister1-11/+11
submitted by samuel.rakitnican gmail.com
2011-09-08update scan file for de-BerlinChristoph Pfister1-1/+1
submitted by Frank.Reimann franksbox.de / wol snafu.de
2011-07-16update scan file for de-BerlinChristoph Pfister1-0/+1
submitted by Frank.Reimann franksbox.de
2011-07-16update scan file for de-BerlinChristoph Pfister1-5/+4
submitted by aldafu cs.tu-berlin.de
2011-07-16update scan files for sk-*Christoph Pfister26-42/+143
submitted by puk007 gmail.com
2011-07-16remove outdated scan files fr-*Christoph Pfister18-272/+0
submitted by mossroy free.fr use auto-Default or auto-With167kHzOffsets instead
2011-07-16update scan file us-Cable-Standard-center-frequencies-QAM256Christoph Pfister1-0/+36
submitted by intlvelvet gmail.com
2011-06-26update scan file for au-Sydney_North_ShoreChristoph Pfister1-1/+1
submited by sollis gmail.com