For anyone with an XInput-exclusive controller, there's
SISR to run Steam Input system-wide, but as the
docs' intro page says it's unfinished and might work a bit goofy.
For DInput-to-XInput (not Touhou specifically but 90% of games nowadays only support XInput) there's
XOutput.
And worst case you can always just map everything off the keyboard manually with
AntiMicroX or some other keyboard>joystick mapper. (there's a bunch of them but this one works the best in my experience, plus I think it's one of the few with Linux support)
I completely missed the message above RAAAHHH
wrappers like x360ce or AntiMicro
I always thought x360ce only converted to XInput. I've been trying to get it to do DInput for a bit but I'm not finding a way, it just tries converting it to a virtual XInput controller no matter what. Its GUI always gives me a headache every time I try to use it though so I could just be dense and completely missed it.
As for AntiMicro, I'm pretty sure both the old version and the currently maintained one
(AntiMicroX) are only made for mapping keyboard & mouse, so it doesn't have anything in place to simulate a virtual controller.