https://bugs.winehq.org/show_bug.cgi?id=47188
--- Comment #5 from kiwii@lytoria.de --- I've gone and checked A Hat in Time in Wine 4.8 with my Wii U Pro gamepad and it exhibits the same symptoms I mentioned with XInputTest.exe, i.e. the d-pad doesn't register at all. And as expected it works in previous versions of Wine.
I also have to excuse my inability to use these forms correctly; as I'm new to bugzilla, I wasn't aware of how the attachment system works or that I couldn't edit a comment after posting it. So, sorry for the spam. Next time, I'll try to keep it to one comment.
I also somehow messed up the download link for XInputTest.exe when copy-pasting, so here is the correct one: https://github.com/x360ce/x360ce/raw/master/x360ce/Support/XInputTest.exe