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

Fix analog sticks #11616

Merged
merged 3 commits into from
Feb 6, 2017
Merged

Fix analog sticks #11616

merged 3 commits into from
Feb 6, 2017

Conversation

garbear
Copy link
Member

@garbear garbear commented Feb 5, 2017

The first fix is for a logic error in #11571 that breaks analog sticks.

Also included is a fix for an edge case documented in bd6697b.

Another two fixes have been PRed to xbmc/peripheral.joystick#84

@garbear garbear force-pushed the fix-analog-sticks branch 6 times, most recently from f110eb3 to c5fdf0d Compare February 6, 2017 09:18
@garbear
Copy link
Member Author

garbear commented Feb 6, 2017

I split the cleanup commits into #11621. I also simplified the detection code by removing checks for a quirk that a following PR will addresses.

jenkins build this please

… the detection process starts.

Before the associated fix in peripheral.joystick, updates were only sent
for updated axes. Now, peripheral.joystick sends events for every known
axis on every frame. This means that we can reliably detect an initial
position of the axis.

There is one caveat - on OSX, axes are not reported until first *moved*.
This means that until a trigger is pressed at least once, its position
is unknown. This breaks button mapping, but the next attempt should work.
@garbear garbear merged commit 870a4be into xbmc:master Feb 6, 2017
@garbear garbear deleted the fix-analog-sticks branch February 6, 2017 09:55
@MartijnKaijser MartijnKaijser added this to the L 18.0-alpha1 milestone Feb 9, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants