mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-03-28 08:37:06 +00:00
input: fix emulated button map accessors
This commit is contained in:
parent
cb1b71bc57
commit
f4b346a6f8
@ -96,7 +96,7 @@ struct emulated_pad_config : cfg::node
|
||||
if (!pbtn) return;
|
||||
const u32 offset = pad_button_offset(pbtn->get());
|
||||
const u32 keycode = pad_button_keycode(pbtn->get());
|
||||
button_map[(offset >> 8) & 0xFF][keycode & 0xFF].insert(std::as_const(pbtn));
|
||||
button_map[offset][keycode].insert(std::as_const(pbtn));
|
||||
buttons.push_back(pbtn);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user