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:
Jeffrey Bosboom
2023-04-15 02:13:00 -07:00
parent 4efa10c170
commit a902480cb0
2 changed files with 5 additions and 5 deletions

View File

@ -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);
}