|
| 1 | +/** |
| 2 | + * @filename InputEvent.h |
| 3 | + * |
| 4 | + * @brief header files for InputEvent.c |
| 5 | + * |
| 6 | + * @copyright Copyright (C) 2005-2008 Luke Cole |
| 7 | + * |
| 8 | + * This program is free software; you can redistribute it and/or |
| 9 | + * modify it under the terms of version 2 of the GNU General Public |
| 10 | + * License as published by the Free Software Foundation |
| 11 | + * |
| 12 | + * This program is distributed in the hope that it will be useful, |
| 13 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 15 | + * GNU General Public License for more details. |
| 16 | + * |
| 17 | + * You should have received a copy of the GNU General Public License |
| 18 | + * along with this program; if not, write to the Free Software |
| 19 | + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA |
| 20 | + * 02111-1307, USA. |
| 21 | + * |
| 22 | + * |
| 23 | + * @author Luke Cole |
| 24 | + |
| 25 | + * |
| 26 | + * @version |
| 27 | + * $Id:$ |
| 28 | + */ |
| 29 | + |
| 30 | +#ifndef __INC_InputEvent_h |
| 31 | +#define __INC_InputEvent_h |
| 32 | + |
| 33 | +#ifdef __cplusplus |
| 34 | +extern "C" { |
| 35 | +#endif |
| 36 | + |
| 37 | +//============================================================================= |
| 38 | + |
| 39 | +struct input_event; |
| 40 | +int IEOpen(char *device, int *fd); |
| 41 | +int IEName(int fd, char *name, int size); |
| 42 | +int IEVersion(int fd, int *version); |
| 43 | +int IERead(int fd, struct input_event *ev, int *events); |
| 44 | +int IEPrintDeviceInfo(int fd); |
| 45 | + |
| 46 | +//============================================================================= |
| 47 | + |
| 48 | +#ifdef __cplusplus |
| 49 | +} |
| 50 | +#endif |
| 51 | + |
| 52 | +#endif //__INC_InputEvent_h |
| 53 | + |
| 54 | +//============================================================================= |
| 55 | + |
| 56 | +/* |
| 57 | + * Local Variables: |
| 58 | + * mode: C |
| 59 | + * End: |
| 60 | + */ |
0 commit comments