diff options
author | notaz | 2009-05-30 22:47:25 +0300 |
---|---|---|
committer | notaz | 2009-05-30 22:47:25 +0300 |
commit | 4742480dcabcbd9d23fd8cb9a655fc8c9c314513 (patch) | |
tree | 80e9e7410db42a9f582576e0920cef04f981b068 /input.c | |
parent | a6c41a382bd4c79ab5d337536152717afcfa624f (diff) | |
download | picogpsp-4742480dcabcbd9d23fd8cb9a655fc8c9c314513.tar.gz picogpsp-4742480dcabcbd9d23fd8cb9a655fc8c9c314513.tar.bz2 picogpsp-4742480dcabcbd9d23fd8cb9a655fc8c9c314513.zip |
wiz port wip
Diffstat (limited to 'input.c')
-rw-r--r-- | input.c | 18 |
1 files changed, 1 insertions, 17 deletions
@@ -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() { |