mirror of
git://projects.qi-hardware.com/gmenu2x.git
synced 2024-08-18 21:07:08 +03:00
54 lines
2.4 KiB
C
54 lines
2.4 KiB
C
|
/***************************************************************************
|
||
|
* Copyright (C) 2006 by Massimiliano Torromeo *
|
||
|
* massimiliano.torromeo@gmail.com *
|
||
|
* *
|
||
|
* This program 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 of the License, or *
|
||
|
* (at your option) any later version. *
|
||
|
* *
|
||
|
* This program 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., *
|
||
|
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
|
||
|
***************************************************************************/
|
||
|
|
||
|
#include <linux/types.h>
|
||
|
|
||
|
#define GP2X_CLK_FREQ 7372800
|
||
|
|
||
|
#define GP2X_BUTTON_UP (0)
|
||
|
#define GP2X_BUTTON_DOWN (4)
|
||
|
#define GP2X_BUTTON_LEFT (2)
|
||
|
#define GP2X_BUTTON_RIGHT (6)
|
||
|
#define GP2X_BUTTON_UPLEFT (1)
|
||
|
#define GP2X_BUTTON_UPRIGHT (7)
|
||
|
#define GP2X_BUTTON_DOWNLEFT (3)
|
||
|
#define GP2X_BUTTON_DOWNRIGHT (5)
|
||
|
#define GP2X_BUTTON_CLICK (18)
|
||
|
#define GP2X_BUTTON_A (12)
|
||
|
#define GP2X_BUTTON_B (13)
|
||
|
#define GP2X_BUTTON_START (8)
|
||
|
#define GP2X_BUTTON_SELECT (9)
|
||
|
#define GP2X_BUTTON_VOLUP (16)
|
||
|
#define GP2X_BUTTON_VOLDOWN (17)
|
||
|
|
||
|
#ifdef GP2X_OLDSDL_FIX
|
||
|
#define GP2X_BUTTON_X (15)
|
||
|
#define GP2X_BUTTON_Y (14)
|
||
|
#define GP2X_BUTTON_L (11)
|
||
|
#define GP2X_BUTTON_R (10)
|
||
|
#else
|
||
|
#define GP2X_BUTTON_X (14)
|
||
|
#define GP2X_BUTTON_Y (15)
|
||
|
#define GP2X_BUTTON_L (10)
|
||
|
#define GP2X_BUTTON_R (11)
|
||
|
#endif
|
||
|
|
||
|
#define FBMMSP2CTRL 0x4619
|