You are not logged in.

#1 2010-08-12 06:51:49

eldamar
Member
From: Sweden
Registered: 2008-02-11
Posts: 104

Gamepad is treated as keyboard

I have this problem trying to set up my gamepad to play Zsnes where all the buttons seems to be recognized as keyboard number inputs. I have tried two different gamepads one that i know worked earlier but now doesnt, i am trying to use the xboxdrv drivers from AUR.

I have read that there has been problem where xorg treats the gamepad as mouse but in my case it seems to be treated as keyboard.
What might be the problem?

Offline

#2 2010-08-13 18:30:22

eldamar
Member
From: Sweden
Registered: 2008-02-11
Posts: 104

Re: Gamepad is treated as keyboard

I found out that it's not the gamepad that is recognized as a keyboard but rather the other way around!
So my wireless keyboard transmitter occupies the first joystick slots /dev/input/js0 and /dev/input/js1 and for some reason this messes up my gamepads.

After i remove the keyboard transmitter the gamepads works just fine. jstest gives me this (same output for js1):
jstest /dev/input/js0
Joystick (Microsoft Microsoft® Nano Transceiver v2.0) has 37 axes and 41 buttons. Driver version is 2.1.0.

so now im thinking there is something wrong with how my system loads my keyboard, just don't really know what to do about it, anny suggestions?

Offline

#3 2011-01-06 22:09:09

eldamar
Member
From: Sweden
Registered: 2008-02-11
Posts: 104

Re: Gamepad is treated as keyboard

No one else has this problem? found a bugreport on launchpad with the similar problem. Can i somehow get around this? Here is the bugreport on launchpad https://bugs.launchpad.net/ubuntu/+sour … bug/581862

Offline

#4 2011-09-12 05:25:12

turjuque
Member
Registered: 2011-08-29
Posts: 9

Re: Gamepad is treated as keyboard

Well I'm having this issue and i'm searching a way to remove this js0 entry or at least disable it. The problem in my case is that one axis or more of js0 are fully "pushed" so any time i want to assign my keys in a game the axis is detected. One boring solution i found is to calibrate your js0

# jscal -c /dev/input/js0

but it doesn't work in every cases.

Offline

#5 2011-09-12 14:31:21

Rasi
Member
From: Germany
Registered: 2007-08-14
Posts: 1,914
Website

Re: Gamepad is treated as keyboard

the only way around this is to get rid of evdev and create a static xorg.conf with "AutoAddDevices = False" and proper mouse, joystick and keyboard sections.


He hoped and prayed that there wasn't an afterlife. Then he realized there was a contradiction involved here and merely hoped that there wasn't an afterlife.

Douglas Adams

Offline

#6 2011-09-12 16:53:39

turjuque
Member
Registered: 2011-08-29
Posts: 9

Re: Gamepad is treated as keyboard

Can't we make a special section in evdev  to disable the js0 input on matched device name (Microsoft Nano Receiver) or something like that? I don't know if it is possible hmm

Offline

Board footer

Powered by FluxBB