X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=gp2x%2Fgp2x.c;h=f350352f66ba38966676d8fa867e1106f329f9a1;hb=82abf46f3db8ade517881c03327bdbc0de848eb2;hp=e0aa296b14779ada631d3c0a407f007f4ad8119f;hpb=e31266dd116b6bea59ce3f2036feeb6725c45a72;p=libpicofe.git diff --git a/gp2x/gp2x.c b/gp2x/gp2x.c index e0aa296..f350352 100644 --- a/gp2x/gp2x.c +++ b/gp2x/gp2x.c @@ -35,6 +35,7 @@ #include "../linux/sndout_oss.h" #include "../common/arm_utils.h" #include "../common/arm_linux.h" +#include "../common/emu.h" volatile unsigned short *gp2x_memregs; //static @@ -194,19 +195,6 @@ void gp2x_pd_clone_buffer2(void) } -unsigned long gp2x_joystick_read(int unused) -{ - int i; - unsigned long value=(gp2x_memregs[0x1198>>1] & 0x00FF); // GPIO M - if(value==0xFD) value=0xFA; - if(value==0xF7) value=0xEB; - if(value==0xDF) value=0xAF; - if(value==0x7F) value=0xBE; - value = ~((gp2x_memregs[0x1184>>1] & 0xFF00) | value | (gp2x_memregs[0x1186>>1] << 16)); // C D - - return value; -} - typedef struct ucb1x00_ts_event { unsigned short pressure;