diff --git a/rpcs3/Emu/Io/PadHandler.h b/rpcs3/Emu/Io/PadHandler.h index e099e2ef37..207d2ae3aa 100644 --- a/rpcs3/Emu/Io/PadHandler.h +++ b/rpcs3/Emu/Io/PadHandler.h @@ -86,12 +86,14 @@ enum ButtonDataOffset static const u32 CELL_MAX_PADS = 127; static const u32 CELL_PAD_MAX_PORT_NUM = 7; static const u32 CELL_PAD_MAX_CODES = 64; +static const u32 CELL_PAD_MAX_CAPABILITY_INFO = 32; struct Button { u32 m_offset; u32 m_keyCode; u32 m_outKeyCode; + u16 m_value; bool m_pressed; bool m_flush; @@ -101,6 +103,7 @@ struct Button , m_offset(offset) , m_keyCode(keyCode) , m_outKeyCode(outKeyCode) + , m_value(0) { } }; @@ -110,15 +113,13 @@ struct AnalogStick u32 m_offset; u32 m_keyCodeMin; u32 m_keyCodeMax; - bool m_min_pressed; - bool m_max_pressed; + u16 m_value; 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) { } }; @@ -133,10 +134,15 @@ struct Pad std::vector