From 0c3a64f43715282cfaedd0964e02557f672606e5 Mon Sep 17 00:00:00 2001 From: Chris Thrasher Date: Mon, 9 Dec 2024 11:56:39 -0700 Subject: [PATCH] Use `std::bitset` --- src/SFML/Window/JoystickImpl.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/SFML/Window/JoystickImpl.hpp b/src/SFML/Window/JoystickImpl.hpp index 65ec74d56..b9df3c1c7 100644 --- a/src/SFML/Window/JoystickImpl.hpp +++ b/src/SFML/Window/JoystickImpl.hpp @@ -33,6 +33,8 @@ #include +#include + namespace sf::priv { @@ -55,7 +57,7 @@ struct JoystickState { bool connected{}; //!< Is the joystick currently connected? EnumArray axes{}; //!< Position of each axis, in range [-100, 100] - std::array buttons{}; //!< Status of each button (true = pressed) + std::bitset buttons; //!< Status of each button (true = pressed) }; } // namespace sf::priv