On Sun, Mar 20, 2011 at 15:40, Roderick Colenbrander <thunderbir...@gmail.com> wrote: > On Sun, Mar 20, 2011 at 1:26 PM, Alesh Slovak <aleshslo...@gmail.com> wrote: >> >> On 21 March 2011 00:21, Vitaliy Margolen <wine-de...@kievinfo.com> wrote: >>> >>> On 03/20/2011 08:20 AM, Alesh Slovak wrote: >>>> >>>> I am interested in getting the Xbox 360 controller working in wine. >>> >>> You'll need to implement xinput*.dll which is an empty stub in Wine. >> >> Do you know if there has been any previous effort that I can take a look >> at/use as a starting point? I found lots of references to such efforts, but >> they all seemed to fizzle out and there was never any code. >> > > There are some patches still around (would have to look them up) and > they work. The xinput API is very trivial. Essentially there is only > one real call there and that's to poll the device. The API is not so > nice though, because xinput was written in such a way that you can add > a controller whenever you want throughout the lifetime of the game. > The also 'nice' thing is that when you plug in a second controller, it > may actually become the 'first' controller (there is no guarantee) and > the first would become the second. A correct implementation would > 're-probe' for joysticks every 'poll' command :(
http://www.winehq.org/pipermail/wine-patches/2008-November/064302.html http://www.winehq.org/pipermail/wine-patches/2008-November/064304.html http://www.winehq.org/pipermail/wine-patches/2008-November/064305.html -- -Austin