New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add warning about XButton1 and 2 on X11. #2038
Conversation
Codecov Report
@@ Coverage Diff @@
## 2.6.x #2038 +/- ##
=======================================
Coverage ? 8.93%
=======================================
Files ? 185
Lines ? 15856
Branches ? 4174
=======================================
Hits ? 1416
Misses ? 14308
Partials ? 132 Continue to review full report at Codecov.
|
The linked forum post tells that |
Ah. I should have read more carefully. I need to target the 2.6.x branch, too. |
There is no chance I will get around to this before next week. 😬 someone welcome to close and replace. |
I've rebased your commit onto |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just got reminded of @kimci86's comment about the original report...
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) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As pointed out by @kimci86, these buttons are available through events, so I guess we might not want to have this here
@@ -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. | |||
/// |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As pointed out by @kimci86, these buttons are available through events, so we might want to move this warning to isButtonPressed
instead
@mrzeusthecoder: are you interested in continuing work on this PR? |
No, sorry about this all. Life has been crazy! |
Description
Adds a warning about the two XButtons not being polled on Linux. This closes a task for 2.6.0.