Problem & solution found with Tomb Raider II Joysticks

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
bookerg
Newbie
Newbie
Posts: 4
Joined: Sun Apr 28, 2013 4:14 pm

Problem & solution found with Tomb Raider II Joysticks

Post by bookerg »

Hi all,


I'm hoping somebody can help me with this - I notice in the Wine source code (dlls/dinput/joystick.c) that a comment has been left claiming that joysticks don't work in Tomb Raider II under Wine.


However, I've found this to be false on two grounds:-


1) Tomb Raider II actually uses winmm.dll for joysticks, so this comment appears to be in the wrong place (TR2 only uses dinput.dll for the keyboard & mouse)



2) Joysticks do in fact work under TR2, but only if winmm.dll (winejoystick.drv) enumerates the joystick as "joystick 0" (according to winejoystick.drv, this means it must be mapped as /dev/input/js0)


I've observed the same behaviour under Windows, too.


I think the confusion comes from the fact that the TR2 control panel allows the user to select their preferred joystick (and even creates a 'PreferredGuid' registry key) but the game itself takes no notice of it!


Does the commentary in the source code need to be updated, or should it be left as-is ?


(incidentally, joypad support under TR2 is pretty bad anyway as most buttons can't be customised)
bookerg
Newbie
Newbie
Posts: 4
Joined: Sun Apr 28, 2013 4:14 pm

Re: Problem & solution found with Tomb Raider II Joysticks

Post by bookerg »

Minor mistake in my last post - the source file is dlls/dinput/dinput_main.c, not joystick.c


Also, the comment doesn't explicitly mention the joystick - it simply says "playable with keyboard only", which I assume is meant to mean that the joystick doesn't? (rather than the mouse)
Locked