summaryrefslogtreecommitdiff
path: root/src/SFML/Window/JoystickImpl.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/SFML/Window/JoystickImpl.hpp')
-rw-r--r--src/SFML/Window/JoystickImpl.hpp17
1 files changed, 10 insertions, 7 deletions
diff --git a/src/SFML/Window/JoystickImpl.hpp b/src/SFML/Window/JoystickImpl.hpp
index e4fd7e2..b915a6f 100644
--- a/src/SFML/Window/JoystickImpl.hpp
+++ b/src/SFML/Window/JoystickImpl.hpp
@@ -1,7 +1,7 @@
////////////////////////////////////////////////////////////
//
// SFML - Simple and Fast Multimedia Library
-// Copyright (C) 2007-2018 Laurent Gomila (laurent@sfml-dev.org)
+// Copyright (C) 2007-2023 Laurent Gomila (laurent@sfml-dev.org)
//
// This software is provided 'as-is', without any express or implied warranty.
// In no event will the authors be held liable for any damages arising from the use of this software.
@@ -30,7 +30,6 @@
////////////////////////////////////////////////////////////
#include <SFML/Config.hpp>
#include <SFML/Window/Joystick.hpp>
-#include <SFML/System/String.hpp>
#include <algorithm>
@@ -50,8 +49,8 @@ struct JoystickCaps
std::fill(axes, axes + Joystick::AxisCount, false);
}
- unsigned int buttonCount; ///< Number of buttons supported by the joystick
- bool axes[Joystick::AxisCount]; ///< Support for each axis
+ unsigned int buttonCount; //!< Number of buttons supported by the joystick
+ bool axes[Joystick::AxisCount]; //!< Support for each axis
};
@@ -68,9 +67,9 @@ struct JoystickState
std::fill(buttons, buttons + Joystick::ButtonCount, false);
}
- bool connected; ///< Is the joystick currently connected?
- float axes[Joystick::AxisCount]; ///< Position of each axis, in range [-100, 100]
- bool buttons[Joystick::ButtonCount]; ///< Status of each button (true = pressed)
+ bool connected; //!< Is the joystick currently connected?
+ float axes[Joystick::AxisCount]; //!< Position of each axis, in range [-100, 100]
+ bool buttons[Joystick::ButtonCount]; //!< Status of each button (true = pressed)
};
} // namespace priv
@@ -94,6 +93,10 @@ struct JoystickState
#include <SFML/Window/OpenBSD/JoystickImpl.hpp>
+#elif defined(SFML_SYSTEM_NETBSD)
+
+ #include <SFML/Window/NetBSD/JoystickImpl.hpp>
+
#elif defined(SFML_SYSTEM_MACOS)
#include <SFML/Window/OSX/JoystickImpl.hpp>