core/hid: Rework battery mappings

This commit is contained in:
german77 2021-10-24 23:23:54 -05:00 committed by Narr the Reg
parent c6c32daf40
commit 064ddacf49
9 changed files with 109 additions and 46 deletions

View file

@ -174,7 +174,7 @@ void EmulatedDevices::UpdateKey(std::size_t key_index, bool status) {
if (status) {
entry = entry | mask;
} else {
entry = entry & ~mask;
entry = static_cast<u8>(entry & ~mask);
}
}