cellKb: implement key repeat

- Implements key repeat functionality
- Fixes an issue where games registered keys repeatedly even though we weren't actually setting multiple key presses.
This commit is contained in:
Megamouse 2021-10-07 01:32:48 +02:00
parent 70308d05f3
commit eb850681ee
3 changed files with 20 additions and 5 deletions

View file

@ -42,8 +42,6 @@ void fmt_class_string<CellKbMappingType>::format(std::string& out, u64 arg)
void KeyboardHandlerBase::Key(u32 code, bool pressed)
{
// TODO: Key Repeat
std::lock_guard<std::mutex> lock(m_mutex);
for (Keyboard& keyboard : m_keyboards)