Skip to content
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

Added support for (some) Hat/POV axis #1248

Merged
merged 1 commit into from Dec 6, 2017
Merged

Added support for (some) Hat/POV axis #1248

merged 1 commit into from Dec 6, 2017

Conversation

mantognini
Copy link
Member

This adds support for POV (of Hat) axes. It was solely tested with a Dualshock 4 but should gracefully fail (with a report on sf::err) when the assumptions behind this implementation don't hold.

Copy link
Member Author

@mantognini mantognini left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

DONE (cannot "request changes" from my own PR...)

break;

default:
sf::err() << "Unexpected usage for element of Page Generic Desktop: 0x" << std::hex << IOHIDElementGetUsage(element) << std::dec << std::endl;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be disabled in release builds.

@eXpl0it3r eXpl0it3r moved this from Discussion to Requires Adjustments in SFML 2.5.0 Jul 18, 2017
@eXpl0it3r
Copy link
Member

Does this need adjustment for other OS?

@mantognini
Copy link
Member Author

As far as I know, only Mac is concerned by this.

@mantognini
Copy link
Member Author

I've rebased this. I believe it can be moved to "Ready".

@eXpl0it3r eXpl0it3r moved this from Requires Adjustments to Ready in SFML 2.5.0 Nov 29, 2017
@eXpl0it3r eXpl0it3r merged commit 883ec93 into master Dec 6, 2017
@eXpl0it3r eXpl0it3r deleted the bugfix/joystick branch December 6, 2017 17:00
@eXpl0it3r eXpl0it3r moved this from Ready to Merged / Superseded in SFML 2.5.0 Dec 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
SFML 2.5.0
  
Merged / Superseded
Development

Successfully merging this pull request may close these issues.

None yet

2 participants