#include "../linux/sndout_oss.h"\r
#include "../common/arm_utils.h"\r
#include "../common/arm_linux.h"\r
+#include "../common/emu.h"\r
\r
volatile unsigned short *gp2x_memregs;\r
//static\r
}\r
\r
\r
-unsigned long gp2x_joystick_read(int unused)\r
-{\r
- int i;\r
- unsigned long value=(gp2x_memregs[0x1198>>1] & 0x00FF); // GPIO M\r
- if(value==0xFD) value=0xFA;\r
- if(value==0xF7) value=0xEB;\r
- if(value==0xDF) value=0xAF;\r
- if(value==0x7F) value=0xBE;\r
- value = ~((gp2x_memregs[0x1184>>1] & 0xFF00) | value | (gp2x_memregs[0x1186>>1] << 16)); // C D\r
-\r
- return value;\r
-}\r
-\r
typedef struct ucb1x00_ts_event\r
{\r
unsigned short pressure;\r