[SOLVED] Joystick Axis not working

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
Spoony
Newbie
Newbie
Posts: 3
Joined: Sun Jun 01, 2008 1:54 am

[SOLVED] Joystick Axis not working

Post by Spoony »

My Joystick, a Logitech Extreme 3D, works natively in Linux. It's mapped to /dev/input/js0

All the buttons on the joystick work in wine, but the Joystick's Axis', HAT switch and throttle do not work in wine. Specifically, I'm trying to play Xwing Alliance. I'm running Gentoo Linux, 2.6.25.4 kernel, wine 1.0 rc3

Any help getting my joystick's axis', hat switch, and throttle working would be great. I've only just started using wine...and I don't know a lot about this crazy windows registry thing. So please, be patient with me and my wine newbie-ness

My DirectInput regkey looks like this:
"Logitech Logitech Extreme 3D" "X,Y,Rz,Throttle,Hat0X,Hat0Y"

The (seemingly useful parts of) WINEDEBUG gives me the following info:

Code: Select all

trace:dinput:joydev_enum_deviceA Enumerating the linux Joystick

device: /dev/input/js0 (Logitech Logitech Extreme 3D)

trace:dinput:setup_dinput_options "Logitech Logitech Extreme 3D" = "X,Y,Rz,Throttle,Hat0X,Hat0Y"

err:dinput:setup_dinput_options invalid joystick axis type: "Throttle"
err:dinput:setup_dinput_options invalid joystick axis type: "Hat0X"
err:dinput:setup_dinput_options invalid joystick axis type: "Hat0Y"

trace:dinput:IDirectInputAImpl_AddRef (0x1359c8) incrementing from 1
trace:dinput:_dump_DIDATAFORMAT Dumping DIDATAFORMAT structure:
trace:dinput:_dump_DIDATAFORMAT   - dwSize: 24
trace:dinput:_dump_DIDATAFORMAT   - dwObjsize: 16
trace:dinput:_dump_DIDATAFORMAT   - dwFlags: 0x00000001 (DIDF_ABSAXIS)
trace:dinput:_dump_DIDATAFORMAT   - dwDataSize: 272
trace:dinput:_dump_DIDATAFORMAT   - dwNumObjs: 15
trace:dinput:_dump_DIDATAFORMAT   - Object 0:
trace:dinput:_dump_DIDATAFORMAT       * GUID: {a36d02e0-c9f3-11cf-bfc7-444553540000} ('GUID_XAxis')
trace:dinput:_dump_DIDATAFORMAT       * dwOfs: 0
trace:dinput:_dump_DIDATAFORMAT       * dwType: 0x00000002
trace:dinput:_dump_DIDATAFORMAT         Type: DIDFT_ABSAXIS / Instance:   0
trace:dinput:_dump_DIDATAFORMAT       * dwFlags: 0x00000000
trace:dinput:_dump_DIDATAFORMAT   - Object 1:
trace:dinput:_dump_DIDATAFORMAT       * GUID: {a36d02e1-c9f3-11cf-bfc7-444553540000} ('GUID_YAxis')
trace:dinput:_dump_DIDATAFORMAT       * dwOfs: 4
trace:dinput:_dump_DIDATAFORMAT       * dwType: 0x00000102
trace:dinput:_dump_DIDATAFORMAT         Type: DIDFT_ABSAXIS / Instance:   1
trace:dinput:_dump_DIDATAFORMAT       * dwFlags: 0x00000000
trace:dinput:_dump_DIDATAFORMAT   - Object 2:
trace:dinput:_dump_DIDATAFORMAT       * GUID: {a36d02e3-c9f3-11cf-bfc7-444553540000} ('GUID_RzAxis')
trace:dinput:_dump_DIDATAFORMAT       * dwOfs: 20
trace:dinput:_dump_DIDATAFORMAT       * dwType: 0x00000502
trace:dinput:_dump_DIDATAFORMAT         Type: DIDFT_ABSAXIS / Instance:   5

trace:dinput:alloc_device axis_map[0] = 0
trace:dinput:alloc_device axis_map[1] = 1
trace:dinput:alloc_device axis_map[2] = 5
trace:dinput:alloc_device axis_map[3] = -1
trace:dinput:alloc_device axis_map[4] = -1
trace:dinput:alloc_device axis_map[5] = -1
trace:dinput:_dump_DIDEVCAPS dwAxes: 3
trace:dinput:_dump_DIDEVCAPS dwPOVs: 0
Thanks!
Last edited by Spoony on Sun Jun 01, 2008 2:38 am, edited 1 time in total.
Spoony
Newbie
Newbie
Posts: 3
Joined: Sun Jun 01, 2008 1:54 am

Post by Spoony »

I just noticed, that although I get full range of my joystick's axis' in jscalibrator....I barely get any movement in a windows joystick tester, called joytester.exe.

Looking through some other threads on joysticks, you can't calibrate your joystick in wine. Correct? I'm to assume that it carries over the calibration from linux?
Spoony
Newbie
Newbie
Posts: 3
Joined: Sun Jun 01, 2008 1:54 am

Post by Spoony »

Okay....
It seems that jscalibrator is a piece of crap.

using:

jscal -c /dev/input/js0

worked.

I spent all day trying to figure this out....and I figure it out as soon as I post in a forum asking for help.

At the least, I'm sure this will help someone later on.
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Re: [SOLVED] Joystick Axis not working

Post by vitamin »

Spoony wrote:My DirectInput regkey looks like this:
"Logitech Logitech Extreme 3D" "X,Y,Rz,Throttle,Hat0X,Hat0Y"
This is wrong and that's what Wine tells you. There is no "Throttle", "Hat0X" or "Hat0Y" it should be

Code: Select all

"Logitech Logitech Extreme 3D"="X,Y,Rz,Slider1,Hat0,Hat0"
Locked