https://bugs.winehq.org/show_bug.cgi?id=52024
--- Comment #17 from Zebediah Figura z.figura12@gmail.com --- Looks like our build is broken if the XInput2 headers are missing. I'll send a patch to fix that, in the meantime you might try installing libxi-dev (or libxi-dev:i386) and reconfiguring.