summaryrefslogtreecommitdiff
path: root/input.c
diff options
context:
space:
mode:
authornotaz2009-05-30 22:47:25 +0300
committernotaz2009-05-30 22:47:25 +0300
commit4742480dcabcbd9d23fd8cb9a655fc8c9c314513 (patch)
tree80e9e7410db42a9f582576e0920cef04f981b068 /input.c
parenta6c41a382bd4c79ab5d337536152717afcfa624f (diff)
downloadpicogpsp-4742480dcabcbd9d23fd8cb9a655fc8c9c314513.tar.gz
picogpsp-4742480dcabcbd9d23fd8cb9a655fc8c9c314513.tar.bz2
picogpsp-4742480dcabcbd9d23fd8cb9a655fc8c9c314513.zip
wiz port wip
Diffstat (limited to 'input.c')
-rw-r--r--input.c18
1 files changed, 1 insertions, 17 deletions
diff --git a/input.c b/input.c
index 2b17f50..3eee0b0 100644
--- a/input.c
+++ b/input.c
@@ -375,23 +375,7 @@ u32 gamepad_config_map[16] =
};
extern u32 gp2x_fps_debug;
-
-u32 gpsp_gp2x_joystick_read(void)
-{
- u32 value = (gpsp_gp2x_memregs[0x1198 >> 1] & 0x00FF);
-
- if(value == 0xFD)
- value = 0xFA;
- if(value == 0xF7)
- value = 0xEB;
- if(value == 0xDF)
- value = 0xAF;
- if(value == 0x7F)
- value = 0xBE;
-
- return ~((gpsp_gp2x_memregs[0x1184 >> 1] & 0xFF00) | value |
- (gpsp_gp2x_memregs[0x1186 >> 1] << 16));
-}
+extern u32 gpsp_gp2x_joystick_read(void);
gui_action_type get_gui_input()
{