XWiimote

XWiimote is an open-source device driver for Nintendo Wii / Wii U remotes. It contains tools and libraries which work together with the official hid-wiimote kernel driver, available since linux-3.1.

If you want to use a Nintendo Wii Remote or any compatible device (including the Nintendo Wii Balance Board, Nintendo Wii U Pro Controller, and more) on your linux system, the xwiimote software stack provides everything you need.