From 6045c9a89084d14d2c7e71c576c0ead91079728c Mon Sep 17 00:00:00 2001 From: Jake Date: Thu, 8 May 2014 17:20:16 -0500 Subject: [PATCH] Removed unneccessary commented analog stick code --- rpcs3/Emu/Io/PadHandler.h | 10 +--------- rpcs3/Emu/SysCalls/lv2/SC_Pad.cpp | 6 ------ 2 files changed, 1 insertion(+), 15 deletions(-) diff --git a/rpcs3/Emu/Io/PadHandler.h b/rpcs3/Emu/Io/PadHandler.h index 3c9b936cb5..207d2ae3aa 100644 --- a/rpcs3/Emu/Io/PadHandler.h +++ b/rpcs3/Emu/Io/PadHandler.h @@ -114,13 +114,9 @@ struct AnalogStick u32 m_keyCodeMin; u32 m_keyCodeMax; u16 m_value; - //bool m_min_pressed; - //bool m_max_pressed; AnalogStick(u32 offset, u32 keyCodeMin, u32 keyCodeMax) - :// m_min_pressed(false) - //, m_max_pressed(false) - m_offset(offset) + : m_offset(offset) , m_keyCodeMin(keyCodeMin) , m_keyCodeMax(keyCodeMax) , m_value(128) @@ -263,16 +259,12 @@ public: // if we are at the opposite end of the axis, dont reset to middle if (stick.m_keyCodeMax == code) { - /*stick.m_min_pressed = false; //!!! need fix !!! - stick.m_max_pressed = pressed;*/ if (pressed) stick.m_value = 255; else if (stick.m_value==0) stick.m_value = 0; else stick.m_value = 128; } if (stick.m_keyCodeMin == code) { - /*stick.m_max_pressed = false; //!!! - stick.m_min_pressed = pressed;*/ if (pressed) stick.m_value = 0; else if (stick.m_value == 255) stick.m_value = 255; else stick.m_value = 128; diff --git a/rpcs3/Emu/SysCalls/lv2/SC_Pad.cpp b/rpcs3/Emu/SysCalls/lv2/SC_Pad.cpp index 96244b09ff..f94653db1d 100644 --- a/rpcs3/Emu/SysCalls/lv2/SC_Pad.cpp +++ b/rpcs3/Emu/SysCalls/lv2/SC_Pad.cpp @@ -171,12 +171,6 @@ int cellPadGetData(u32 port_no, u32 data_addr) case CELL_PAD_BTN_OFFSET_ANALOG_RIGHT_Y: pad.m_analog_right_y = stick.m_value; break; default: break; } - - /*if (stick.m_max_pressed && !stick.m_min_pressed) - *res = 255; - if (stick.m_min_pressed && !stick.m_max_pressed) - *res = 0; - */ } data.len = pad.m_buttons.size();