Update enumerations to match SFML 3

This commit is contained in:
Chris Thrasher committed 2024-09-27 13:24:31 -06:00
1 parent fef1e09542
commit c74378bade
9 files changed
+32 -19

No files matched your search

+4 -4
View File
@@ -142,10 +142,10 @@ typedef enum
sfKeyF14, ///< The F14 key
sfKeyF15, ///< The F15 key
sfKeyPause, ///< The Pause key
sfKeyCount, ///< Keep last -- the total number of keyboard keys
} sfKeyCode;
CSFML_WINDOW_API const unsigned int sfKeyCount; ///< The total number of keyboard keys
////////////////////////////////////////////////////////////
/// \brief Scancodes
@@ -310,10 +310,10 @@ typedef enum
sfScanLaunchApplication2, //!< Keyboard Launch Application 2 key
sfScanLaunchMail, //!< Keyboard Launch Mail key
sfScanLaunchMediaSelect, //!< Keyboard Launch Media Select key
sfScancodeCount //!< Keep last -- the total number of scancodes
} sfScancode;
CSFML_WINDOW_API const unsigned int sfScancodeCount; //!< The total number of scancodes
////////////////////////////////////////////////////////////
/// \brief Check if a key is pressed
+7 -7
View File
@@ -39,15 +39,15 @@
////////////////////////////////////////////////////////////
typedef enum
{
sfMouseLeft, ///< The left mouse button
sfMouseRight, ///< The right mouse button
sfMouseMiddle, ///< The middle (wheel) mouse button
sfMouseXButton1, ///< The first extra mouse button
sfMouseXButton2, ///< The second extra mouse button
sfMouseButtonCount ///< Keep last -- the total number of mouse buttons
sfMouseLeft, ///< The left mouse button
sfMouseRight, ///< The right mouse button
sfMouseMiddle, ///< The middle (wheel) mouse button
sfMouseButtonExtra1, ///< The first extra mouse button
sfMouseButtonExtra2, ///< The second extra mouse button
} sfMouseButton;
CSFML_WINDOW_API const unsigned int sfMouseButtonCount; ///< The total number of mouse buttons
////////////////////////////////////////////////////////////
/// \brief Mouse wheels
///
+2 -2
View File
@@ -45,10 +45,10 @@ typedef enum
sfSensorGravity, ///< Measures the direction and intensity of gravity, independent of device acceleration (m/s^2)
sfSensorUserAcceleration, ///< Measures the direction and intensity of device acceleration, independent of the gravity (m/s^2)
sfSensorOrientation, ///< Measures the absolute 3D orientation (degrees)
sfSensorCount ///< Keep last -- the total number of sensor types
} sfSensorType;
CSFML_WINDOW_API const unsigned int sfSensorCount; ///< The total number of sensor types
////////////////////////////////////////////////////////////
/// \brief Check if a sensor is available on the underlying platform