I was emulating Windows 95 in qemu, as well as straight DOS, and FreeDOS (in qemu and natively in Linux).
FreeDOS worked but actual DOS did not; but that was because the mouse didn't work at all, in any application, not because of my code.