http://bugs.winehq.org/show_bug.cgi?id=18424
--- Comment #43 from Mr Nobody limited_choice@hotmail.com 2011-06-17 04:47:34 CDT --- (In reply to comment #38)
Created an attachment (id=35160)
--> (http://bugs.winehq.org/attachment.cgi?id=35160) [details]
Hook up Mac OS X joysticks to DirectInput event queue
Here's the aforementioned patch.
Applied the above patch to a pristine wine-1.3.22 - compile & install (MacOSX 10.6.7) -- ~/.wine was destroyed & recreated ; fresh app installs with $homedir cleansed of any app config dirs/files ... note: make sure you don't have any helper app like 'USB Overdrive' running & active on the HID being used.
For the sake of the bug, I'm here just testing with a USB connected Saitek ST90 analog joystick - it has 6 readable inputs (X, Y, F1, F2, Trigger & digital throttle). There are so many apps affected by this, I figured I'd just start with those mentioned here first...
GOG release of RedBaron / RedBaron 3D (wherein the former title is hoisted on DosBox and the latter is a standalone app) ; no improvement in either, joystick events still not being recognized... (in the dosbox case with the -startmapper cli switch, it's apparent no joystick events are being seen by dosbox still)
Steam release of IL-2: Sturmovik 1946 -- this app now *does* see the joystick, but it had little idea what to do with the digital throttle. (I have the GOG release of this title as well, which I've yet to check). One would need be careful prejudging results with flight-sims ; a single X/Y axis joystick really isn't enough to fly a 'real' plane with, and some flight sims are hardcoded to expect to see rudder bars/pedals ... point is, the hardcoded config and what your HID offers don't always make sense, and often there's little scope to remap things to your liking...
..in short, nice work Jonas! Definitely a step forward, but as I suspected, there's still a few wrinkles to consider...ie; why does RedBaron 3D work with joystick in linux, and still not here even with the patch... I've still a number of HIDs & win32 apps to check, but at least seeing joystick in IL-2 is encouraging & positive ....
..if you need any specific testing done/logs etc etc, just let me know -- you've made the itch worse =)