summaryrefslogtreecommitdiff
path: root/Source/Core/InputCommon/ControllerInterface/Xlib/XInput2.cpp
diff options
context:
space:
mode:
authorJeffrey Bosboom <jbosboom@jeffreybosboom.com>2023-04-15 02:13:00 -0700
committerJeffrey Bosboom <jbosboom@jeffreybosboom.com>2023-05-19 14:20:09 -0700
commita902480cb053478af3f8df25aab8a36395685378 (patch)
treef70ca396f156b0023e0a495c5b58e5032edb7764 /Source/Core/InputCommon/ControllerInterface/Xlib/XInput2.cpp
parent4efa10c170f6c758311d3ac607174633cb716ffc (diff)
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.
Diffstat (limited to 'Source/Core/InputCommon/ControllerInterface/Xlib/XInput2.cpp')
-rw-r--r--Source/Core/InputCommon/ControllerInterface/Xlib/XInput2.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/Core/InputCommon/ControllerInterface/Xlib/XInput2.cpp b/Source/Core/InputCommon/ControllerInterface/Xlib/XInput2.cpp
index 07d8e4bfa5..db7052996c 100644
--- a/Source/Core/InputCommon/ControllerInterface/Xlib/XInput2.cpp
+++ b/Source/Core/InputCommon/ControllerInterface/Xlib/XInput2.cpp
@@ -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);
}