Mouse detected as joypad (Linux)

Technical support for the Linux and Mac platforms for Shadowgrounds and Shadowgrounds Survivor.
Cobalt
Posts: 2
Joined: Mon Apr 25, 2011 12:02 pm

Mouse detected as joypad (Linux)

Postby Cobalt » Mon Apr 25, 2011 12:26 pm

In the Linux verion of Shadowgrounds Survivor my Microsoft Sidewinder Mouse is incorrectly detected as being a joypad. Left-click, scroll-wheel, and movement work but right-click does not.

In the controls section of the game options, all the mouse buttons are detected as the same "joy-but-1".

I am using 64-bit Gentoo Linux and have not seen this sort of error in other situations.

Thanks for releasing a Linux version of this game I have really enjoyed it even if my experience of it has been slightly buggy.

WorBlux
Posts: 5
Joined: Tue Apr 19, 2011 5:27 am

Re: Mouse detected as joypad (Linux)

Postby WorBlux » Thu Apr 28, 2011 5:54 am

hmm?

Code: Select all

dmesg | grep -i hid

?

Code: Select all

ls /dev/input*

?

Gen-kerrnel of custom?

Cobalt
Posts: 2
Joined: Mon Apr 25, 2011 12:02 pm

Re: Mouse detected as joypad (Linux)

Postby Cobalt » Thu Apr 28, 2011 9:09 am

Hi, thanks for the reply.

dmesg | grep -i hid

Code: Select all

usbcore: registered new interface driver hiddev
usbcore: registered new interface driver usbhid
usbhid: v2.6:USB HID core driver
Bluetooth: HIDP (Human Interface Emulation) ver 1.2
generic-usb 0003:045E:0724.0001: input,hidraw0: USB HID v1.11 Mouse [Microsoft SideWinder™ Mouse] on usb-0000:00:1d.7-2.3/input0
generic-usb 0003:046D:C317.0002: input,hidraw1: USB HID v1.10 Keyboard [Logitech USB Multimedia Keyboard] on usb-0000:00:1d.7-2.4/input0
generic-usb 0003:046D:C317.0003: input,hidraw2: USB HID v1.10 Device [Logitech USB Multimedia Keyboard] on usb-0000:00:1d.7-2.4/input1


ls /dev/input*

Code: Select all

by-id  by-path  event0  event1  event2  event3  event4  event5  event6  event7  event8  js0  mice  mouse0  mouse1


The kernel is a custom 2.6.31. Here is the kernel .config

WorBlux
Posts: 5
Joined: Tue Apr 19, 2011 5:27 am

Re: Mouse detected as joypad (Linux)

Postby WorBlux » Fri Apr 29, 2011 2:29 am

Try changing

CONFIG_INPUT_JOYDEV=M

or

CONFIG_HID_MICROSOFT=M

which will enable to to unload the whole joystick interface or just the drivers that messing with the game.

Maybe CONFIG_JOYSTICK_SIDEWINDER=M will give enough information to sort of the trouble.

I don't get how you can have a js0 when no hid was loaded there. (maybe to truncated it, or

Code: Select all

dmesg| grep -i joystick
will shed some light on it)

You can also just

Code: Select all

cat /dev/input/js0
to see what the kernel is actually redirecting to that file as you mash buttons on the mouse. Also works for the mouse devices.

Also if the mouse is newer than your kernel you may want to update to see if proper support was added.

Mabye more trouble that it's worth but that's what I'd try anyways.


Return to “Technical support for Linux & Mac”

Who is online

Users browsing this forum: No registered users and 2 guests