Increase maximum number of buttons allowed on a joystick

This commit is contained in:
Malin E
2021-12-08 10:09:54 +01:00
parent cfd8b145f3
commit c4e763e6a1

View File

@@ -54,10 +54,11 @@ enum class JoystickAction : uint8_t {
* The input state of a single joystick.
*/
struct JoystickInputState {
/// These two are just randomly selected numbers that can be increased if needed
/// The maximum number of supported axes
static constexpr const int MaxAxes = 8;
/// The maximum number of supported buttons
static constexpr const int MaxButtons = 32;
static constexpr const int MaxButtons = 48;
/// Marks whether this joystick is connected. If this value is \c false, all other
/// members of this struct are undefined