to answer my own post, the dev of libretro-cap32 answered me on github. It's a simple matter of switching the virtual keyboard to gamepad emulation by using the SELECT key. Then you can use the virtual keyboard with the mouse. YEAH !