Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 503214 - app-misc/cwiid-20110107-r1 - evdev interface of classic controller does not center analogue sticks
Summary: app-misc/cwiid-20110107-r1 - evdev interface of classic controller does not c...
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard: Pending removal: 2018-04-17
Keywords: PATCH, PMASKED
Depends on:
Blocks:
 
Reported: 2014-03-02 15:29 UTC by Andreas Grois
Modified: 2018-04-29 18:00 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch to give centered analogue sticks the coordinate (0,0). (cwiid_classic_sticks.patch,4.40 KB, patch)
2014-03-02 15:29 UTC, Andreas Grois
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Grois 2014-03-02 15:29:14 UTC
Created attachment 371564 [details, diff]
Patch to give centered analogue sticks the coordinate (0,0).

There are two interfaces for input devices that are supported by wminput, evdev and joystick. Applications seem to expect on both interfaces, that an analogue stick that is centered gives the coordinate (0,0). In the current upstream version of cwiid, when using the classic controller, this is only the case for the joystick interface, while the evdev interface gives only positive numbers, with zero being at the left or bottom end of the sticks movement range (can be easily checked with the evtest and jstest utilities). This makes the sticks of the classic controller unusable in all applications the use evdev, what afaik includes MonoGame and all games based on it.

Attached is a patch that I McGyvered today in order to fix that issue. It works for the classic controller, and I made the same change for Nunchuk, although I don't have any games that would use it, so I cannot test that.

Test run: Played Rogue Legacy
Expecte Result: Analogue sticks on Wii classic controller work
Obtained Result: Analogue sticks don't work, instead one always moves right/up

Suggested Fix: Attached Patch.


Upstream issue: I've tried to report this bug upstream, but the cwiid bug tracker did not allow me to register due to some bug (a buggy bugtracker ^^). I've therefore decided to write an email to L. Donnie Smith. Nevertheless, until the issue is fixed upstream, the patch could be made available to gentoo users in the meantime.
Comment 1 Pacho Ramos gentoo-dev 2018-04-29 18:00:19 UTC
removed