Re: Implementing joystick ids in DirectInput

2012-05-29 Thread Lucas Zawacki
Ok, I sent patches doing this for linux and linuxinput drivers and a test. The joystick_osx.c version of this could be done but I dont have the means to test so if anyone wants to do it, you're welcome.

Re: Implementing joystick ids in DirectInput

2012-05-28 Thread Vitaliy Margolen
On 05/28/2012 12:53 PM, Lucas Zawacki wrote: The solution I came up is in the attached patch, it's a little weird It's not just weird it's incorrect. You shouldn't use that list or rely on order of devices in that list. Instead you should use get_joystick_index() to get the index. It's not ex

Implementing joystick ids in DirectInput

2012-05-28 Thread Lucas Zawacki
Hey guys, asking for a little code review here... I was looking at the solution for this bug http://bugs.winehq.org/show_bug.cgi?id=30705 and it comes down to implementing the DIPROP_JOYSTICKSID property for joystick devices. After some research on what this is I know it's always a number between