mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-01-27 21:35:19 +00:00
input: fix keyboard handler port status
🤦
This commit is contained in:
parent
ae1729bd8a
commit
38097783b8
@ -856,8 +856,8 @@ void keyboard_pad_handler::ThreadProc()
|
||||
|
||||
if (last_connection_status[i] == false)
|
||||
{
|
||||
pad.m_port_status |= CELL_PAD_STATUS_CONNECTED;
|
||||
pad.m_port_status |= CELL_PAD_STATUS_ASSIGN_CHANGES;
|
||||
m_bindings[i]->m_port_status |= CELL_PAD_STATUS_CONNECTED;
|
||||
m_bindings[i]->m_port_status |= CELL_PAD_STATUS_ASSIGN_CHANGES;
|
||||
last_connection_status[i] = true;
|
||||
connected_devices++;
|
||||
}
|
||||
@ -950,6 +950,5 @@ void keyboard_pad_handler::ThreadProc()
|
||||
auto& pad = m_bindings[i];
|
||||
pad->m_buttons = m_pads_internal[i].m_buttons;
|
||||
pad->m_sticks = m_pads_internal[i].m_sticks;
|
||||
pad->m_port_status = m_pads_internal[i].m_port_status;
|
||||
}
|
||||
}
|
||||
|
@ -110,7 +110,7 @@ private:
|
||||
void release_all_keys();
|
||||
|
||||
std::vector<std::shared_ptr<Pad>> m_bindings;
|
||||
std::vector<Pad> m_pads_internal; // Accumulates input until the next poll
|
||||
std::vector<Pad> m_pads_internal; // Accumulates input until the next poll. Only used for user input!
|
||||
|
||||
// Button Movements
|
||||
steady_clock::time_point m_button_time;
|
||||
|
Loading…
x
Reference in New Issue
Block a user