mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-06-11 16:49:28 +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:
@ -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