| 1 | /* |
| 2 | * Copyright (c) 2010, Wei Mingzhi <whistler@openoffice.org>. |
| 3 | * All Rights Reserved. |
| 4 | * |
| 5 | * This program is free software; you can redistribute it and/or modify |
| 6 | * it under the terms of the GNU General Public License as published by |
| 7 | * the Free Software Foundation; either version 2 of the License, or |
| 8 | * (at your option) any later version. |
| 9 | * |
| 10 | * This program is distributed in the hope that it will be useful, |
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 | * GNU General Public License for more details. |
| 14 | * |
| 15 | * You should have received a copy of the GNU General Public License |
| 16 | * along with this program; if not, see <http://www.gnu.org/licenses>. |
| 17 | */ |
| 18 | |
| 19 | #ifndef CFG_H |
| 20 | #define CFG_H |
| 21 | |
| 22 | #include "pad.h" |
| 23 | |
| 24 | void GetKeyDescription(char *buf, int joynum, int key); |
| 25 | void GetAnalogDescription(char *buf, int joynum, int analognum, int dir); |
| 26 | void InitAxisPos(int padnum); |
| 27 | int ReadDKeyEvent(int padnum, int key); |
| 28 | int ReadAnalogEvent(int padnum, int analognum, int analogdir); |
| 29 | |
| 30 | #endif |