Flafla2 / Unity-Wiimote

An easy to use interface between Unity3D / C# and a Wii Remote controller.
MIT License
329 stars 73 forks source link

Added alternative Nunchuck identifier #4

Closed SaffronCR closed 9 years ago

SaffronCR commented 9 years ago

There's some nunchucks with a different id. This change would support both models.

Flafla2 commented 9 years ago

Is this behavior documented anywhere? I am assuming the nunchuck you are referring to is third-party, can you confirm?

SaffronCR commented 9 years ago

It's from a official nunchuck, I know it exists because I have one here that came with my Wii. I've tried googling it and looks like other projects also have it listed, e.g.:

https://github.com/simphax/WiimoteLib/blob/master/WiimoteCS/WiimoteLib/DataTypes.cs

Has listed two nunchucks: Nunchuk = 0x0000a4200000, NewNunchuk = 0xff00a4200000,

Flafla2 commented 9 years ago

Interesting - Wiibrew (my primary resource) doesn't document this. It seems like a valid problem though, so I'll approve the request.

SaffronCR commented 9 years ago

Yeah, Wiibrew has some missing pieces.

Thanks and good work! This plugin has helped me a lot ;)