I have never tried to actually do what you are describing, mapping mouse axis input to output as joycon axis movement...
But it should theoretically be possible with AntiMicroX, on linux.
It... may take a good deal of finagling and curve tweaking to get to a usable bind mapping though, if you are trying to say... play an FPS and use the mouse as the joycon aim.
It should be possible though, it just might require you to manually rebalance the input curves for every different game though.
.......
Alternatively... you could try running KAMI or MIDD, along with the actual emulator, in windows .exe form... through Proton, all in the same config/preset.
That... theoretically could work... maybe? but... seems likely to cause a whole lot of weirdness.
You would have to use protontricks to setup all the required windows .net dependencies and all that, for the emulators and the mouse injector thingies, all within a singlr WINE/Proton config/prefix.