I could've sworn I published this in the past, but I guess I didn't. Oh well, better late than never. BSD-2 licensed Wiimote pointer tracking algorithm. This is what's in libogc. Please use it. It's much better than naive "average the points" approaches.https://gist.github.com/marcan/c7ca900d5191610957c478bbdbb516c0 …
It's been a long time, but IIRC it was to deal with mirrors and other shiny surfaces reflecting one side of the sensor bar, or rows of lights and other red herrings. I think I had a scenario in my house at the time where that would happen.