From c70418b9b11c8221159c101c5a87984e426db10b Mon Sep 17 00:00:00 2001 From: Elijah Hopp Date: Tue, 8 Mar 2022 09:00:25 -0500 Subject: [PATCH] Add warning about XButton1 and 2 on X11. --- include/SFML/Window/Mouse.hpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/include/SFML/Window/Mouse.hpp b/include/SFML/Window/Mouse.hpp index 10cfa5ff73..2fe9908dab 100644 --- a/include/SFML/Window/Mouse.hpp +++ b/include/SFML/Window/Mouse.hpp @@ -53,8 +53,8 @@ class SFML_WINDOW_API Mouse Left, //!< The left mouse button Right, //!< The right mouse button Middle, //!< The middle (wheel) mouse button - XButton1, //!< The first extra mouse button - XButton2, //!< The second extra mouse button + XButton1, //!< The first extra mouse button (not available on Linux) + XButton2, //!< The second extra mouse button (not available on Linux) ButtonCount //!< Keep last -- the total number of mouse buttons }; @@ -172,6 +172,8 @@ class SFML_WINDOW_API Mouse /// sf::Mouse::setPosition(sf::Vector2i(100, 200), window); /// \endcode /// +/// \warning sf::Mouse::XButton1 and sf::Mouse::XButton2 are not available on Linux. +/// /// \see sf::Joystick, sf::Keyboard, sf::Touch /// ////////////////////////////////////////////////////////////