Xinput / DirectInput xbox360 controller support

Marcus Meissner marcus at
Wed Jun 16 14:45:17 CDT 2010

On Wed, Jun 16, 2010 at 08:59:26PM +0200, Roderick Colenbrander wrote:
> Hi all,
> I'm interested in adding Xbox 360 controller support to Wine. For
> people who don't know how this works and what's so special I will
> first give a small introduction.
> I'm wondering how to proceed with XInput. My main issue is the
> 'joystick access part'. Would it be fine to directly access the
> controller from Xinput (so we would need multiple hardware backends
> later on). Code size won't be a problem though since XInput doesn't
> support much functionality at all (the current mostly working version
> is less than 500 lines of code; half of that is for the Linux
> backend). One small issue is though that DirectInput and XInput might
> have to cooperate since typically games use DirectInput to enumerate
> all joysticks, see for instance

I think it is fine to directly access the device in xinput.
In the case there likely DINPUT will not acquire the device.

Ciao, Marcus

More information about the wine-devel mailing list