Closed anduchs closed 11 years ago
Nice series. I applied it locally and it works. However, I haven't found the best normalization-factor, yet. I will play with it a bit more. However, I found some things that we need to resolve first. See the inline comments for more information.
Thanks David
I get the normalize-factors from xwiishow... :-) That works quite nicely... :-)
I picked up the patches and pushed it together with a set of cleanups and hotplugging support.
Can you give it a try? It should work the same way as you proposed but I renamed MPNormalize to MPNormalization.
Fixups are welcome, as usual. And sorry for the delay.
I am planning on cleaning up libxwiimote and xf86-input-xwiimote this week and releasing it on sunday. The only thing missing, IMO, is some automatic calibration or a helper to set the calibration during runtime.
Thanks a lot for this work! David
Hmmm... From a first look, I noticed that the *100-factor should not be in here, since it's now in libxwiimote's mp_normalize function. Here: https://github.com/dvdhrm/xf86-input-xwiimote/commit/989180bef727b265fbc9c6b8ec2ecc73a39948e9#L0R1155
Ok, with this adjustment this all tests great...
I fixed it. Thanks!
This branch is now adapted to the latest version of MPcalibration in libxwiimote branch. With this patchset the wiimote can now be used as gyro-mouse on any machine.
I use KeyB as left-mouse and KeyA as right-mouse with an MPCalibrationFactor of 25 and MPNormalize of 0:300:700 as startvalues (got them from xwiishow)