new faster sprite priority and sh/hi hadling
authornotaz <notasas@gmail.com>
Tue, 17 Jun 2008 19:48:15 +0000 (19:48 +0000)
committernotaz <notasas@gmail.com>
Tue, 17 Jun 2008 19:48:15 +0000 (19:48 +0000)
git-svn-id: file:///home/notaz/opt/svn/PicoDrive/platform@486 be3aeb3a-fb24-0410-a615-afba39da0efa

gp2x/gp2x.c

index 6db1d41..5f38314 100644 (file)
@@ -201,12 +201,12 @@ void gp2x_pd_clone_buffer2(void)
 unsigned long gp2x_joystick_read(int allow_usb_joy)\r
 {\r
        int i;\r
-       unsigned long value=(gp2x_memregs[0x1198>>1] & 0x00FF);\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));\r
+       value = ~((gp2x_memregs[0x1184>>1] & 0xFF00) | value | (gp2x_memregs[0x1186>>1] << 16)); // C D\r
 \r
        if (allow_usb_joy && num_of_joys > 0) {\r
                // check the usb joy as well..\r