From 4742480dcabcbd9d23fd8cb9a655fc8c9c314513 Mon Sep 17 00:00:00 2001 From: notaz Date: Sat, 30 May 2009 22:47:25 +0300 Subject: wiz port wip --- input.c | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) (limited to 'input.c') 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() { -- cgit v1.2.3