This is something I've always wanted to take on, but it is just a lot of work because it's very complex. The Gyroscope measures acceleration, so it outputs a measurement while you are moving the wiimote and stops when you stop. Calculating where the mouse should be based on that is complicated in order to be actually accurate. Plus there is a drift factor. Which is why all Wii games that use it have that center button.
You can use the IR camera, but I doubt I'll ever finish my plans to add gyro support due to the amount of error that would be involved.
There is a program which emulates the mouse very precise its called wiimotehook. Its a tool for the cemu emulator. It works very well aslong i did not activate wiiupro it doesnt correspond with wimotehook very well. Then the mouse behaves strangly.
Is there a way to ignore mouse emulation data from wiiupro or disable it ?
I compliled your source code for wiiupro there you can emulate the xbox 360 controller. then i tried to disable the wiihooks xbox input emulation and i tired it again, but it didnt work.
Mayble u can help me to find a solution where both worlds are comming together.