You may not have a practical use for the Nintendo Wii Nunchuk as a Raspberry Pi mouse, but it serves as a good example of how LCD touchscreens supply their input events.
The Nunchuk has two buttons: an X-Y joystick; and an X, Y, and Z accelerometer. The sensor data is communicated through the I2C bus. This will give us a practice with the I2C C API as well. Let’s have some fun implementing a Nunchuk pointing device for the X Window system desktop.
Project Overview
The I2C data communication of the Nunchuk device
Inserting the sensed ...