Gotcha. Do keep in mind that the emulation is far from perfect, so I'd get someone to test on hardware before you merge anything into the upstream. I found this the hard way when beta-testing touch support.
Anyway!
Clone yourself a copy of decaf-emu (the version I've been working with is 9ea4708) and apply
this patch (git apply <patch>) and compile it away.
I've recently pushed an attempt to diagnose memory leaks to GitHub, and wouldn't ya know it, but it happens to run under Decaf
. If you want to save yourself a bit of effort, just clone and compile it
here. If you don't like the ASAN stuff, let me know and I'll make a patch like the Decaf one.
--------------------- MERGED ---------------------------
Speaking of touch support, some preliminary stuff
just got merged in. It only exposes a pointer device; not a mouse or lightgun, so most cores won't like it. In any case, it's a start, and hopefully we'll figure out how to emulate all the input devices in future.