<div dir="ltr">Long story short, while I helped my friend with his "up to the neck in MS API" game, I wrote him complete drop in solution library for XInput over SDL. And since making patch for wine was easier than testing his half done game... well, it came to full featured XInput handling<div>
<br></div><div>It supports:</div><div>- hotplugging/unplugging (well, only if game didn't use DInput to scan new devices. if it is pure XInput, then it just works)</div><div>- all controllers supported by SDL are XInput capable</div>
<div>- haptic works</div><div><br></div><div>And before cleaning it, I just wanted to ask if XInput over SDL is wanted or not. There is no point in working on regular patch if that is out of question.</div><div><br></div>
<div>Just short points why SDL and not native (which I'm not interested in even remotely):</div><div>- far better API than XInput</div><div>- controller database is updated</div><div>- completely cross platform</div><div>
- same source can be reused to port game</div><div>...</div><div>but, don't treat this as I would try starting some holy war. If it doesn't fit in wine plans, no problem. I can still provide it as standalone patch for those that want it</div>
<div><br></div><div>with regards</div><div>wh1sper_123</div></div>