mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2026-10-10 21:06:20 +02:00
XInput2: Make button state a u32
Because we care how many bits it has, not its arithmetic range. No functional change on all supported platforms.
This commit is contained in:
1 parent
4efa10c170
commit
a902480cb0
2 files changed
+5
-5
No files matched your search
@@ -441,8 +441,7 @@ ControlState KeyboardMouse::Key::GetState() const
|
||||
return (m_keyboard[m_keycode / 8] & (1 << (m_keycode % 8))) != 0;
|
||||
}
|
||||
|
||||
KeyboardMouse::Button::Button(unsigned int index, unsigned int* buttons)
|
||||
: m_buttons(buttons), m_index(index)
|
||||
KeyboardMouse::Button::Button(unsigned int index, u32* buttons) : m_buttons(buttons), m_index(index)
|
||||
{
|
||||
name = fmt::format("Click {}", m_index + 1);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user