xwiimote / xf86-input-xwiimote

X.org XInput2 Wii Remote driver based on XWiimote
Other
37 stars 14 forks source link

MPexperiments #8

Closed anduchs closed 11 years ago

anduchs commented 11 years ago

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)

dvdhrm commented 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

anduchs commented 11 years ago

I get the normalize-factors from xwiishow... :-) That works quite nicely... :-)

dvdhrm commented 11 years ago

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

anduchs commented 11 years ago

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

anduchs commented 11 years ago

Ok, with this adjustment this all tests great...

dvdhrm commented 11 years ago

I fixed it. Thanks!