#define GP2X_BUTTON_UP			  0x00000001
#define GP2X_BUTTON_UPLEFT		  0x00000002
#define GP2X_BUTTON_LEFT			0x00000004
#define GP2X_BUTTON_DOWNLEFT		0x00000008
#define GP2X_BUTTON_DOWN			0x00000010
#define GP2X_BUTTON_RIGHT		   0x00000020
#define GP2X_BUTTON_DOWNRIGHT	   0x00000040
#define GP2X_BUTTON_UPRIGHT		 0x00000080
#define GP2X_BUTTON_START		   0x00000100
#define GP2X_BUTTON_SELECT		  0x00000200
#define GP2X_BUTTON_L			   0x00000400
#define GP2X_BUTTON_R			   0x00000800
#define GP2X_BUTTON_A			   0x00001000
#define GP2X_BUTTON_B			   0x00002000
#define GP2X_BUTTON_X			   0x00004000
#define GP2X_BUTTON_Y			   0x00008000
#define GP2X_BUTTON_VOLDOWN		 0x00010000
#define GP2X_BUTTON_VOLUP		   0x00020000
#define GP2X_BUTTON_CLICK		   0x00040000