You are not logged in.

#1 2015-01-23 19:42:43

roxor45
Member
Registered: 2015-01-23
Posts: 2

joystick detect as mouse

hello all,

I try to connect My joystick to linux and I ' m Block

I buy this USB controler (http://fr.aliexpress.com/item/Xin-Mo-Ar … dVersion=1)

when I type this command

so when I make this :

Code: Select all
    cat /proc/bus/input/devices



I have this result :

Code: Select all
    I: Bus=0003 Vendor=0314 Product=0126 Version=0110
    N: Name="Arcade Controller JUYA0 Dual Arcade"
    P: Phys=usb-bcm2708_usb-1.3/input0
    S: Sysfs=/devices/platform/bcm2708_usb/usb1/1-1/1-1.3/1-1.3:1.0/input/input0
    U: Uniq=
    H: Handlers=mouse0 event0
    B: PROP=0
    B: EV=1b
    B: KEY=fff ffff0000 0 0 0 0 0 0 0 0 0
    B: ABS=f00ff
    B: MSC=10



I think linux deteck my joystick as a mouse , could you help me pls

so how modify this  I need to have js0 or js1?

THXXX smile

Offline

#2 2015-01-24 13:25:51

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,173

Re: joystick detect as mouse

Next time please use code tags, they make output a lot more readable (quote this post for an example how to use them) .

check if you have xf86-input-joystick installed.
If not, install that package.

also create /etc/X11/xorg.conf.d/50-joystick.conf with these lines in it :

Section "InputClass"
        Identifier "joystick catchall"
        MatchIsJoystick "on"
        MatchDevicePath "/dev/input/event*"
        Driver "joystick"
        Option "StartKeysEnabled" "False"       #Disable mouse
        Option "StartMouseEnabled" "False"      #support
EndSection 

after restarting X (or reboot system), check cat /proc/bus/input/devices again.

for reference, this is the output for my Logitech joystick.

I: Bus=0003 Vendor=046d Product=c215 Version=0110
N: Name="Logitech Logitech Extreme 3D"
P: Phys=usb-0000:00:02.0-8/input0
S: Sysfs=/devices/pci0000:00/0000:00:02.0/usb2/2-8/2-8:1.0/0003:046D:C215.0002/input/input2
U: Uniq=
H: Handlers=event2 js0 
B: PROP=0
B: EV=1b
B: KEY=fff00000000 0 0 0 0
B: ABS=30063
B: MSC=10

Last edited by Lone_Wolf (2015-01-24 13:26:06)


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#3 2015-01-24 15:11:59

roxor45
Member
Registered: 2015-01-23
Posts: 2

Re: joystick detect as mouse

thanks for you help wolf !

I make your modification and after reboot , I have the same result :

cat /proc/bus/input/devices

I: Bus=0003 Vendor=0314 Product=0126 Version=0110
N: Name="Arcade Controller JUYA0 Dual Arcade"
P: Phys=usb-bcm2708_usb-1.2/input0
S: Sysfs=/devices/platform/bcm2708_usb/usb1/1-1/1-1.2/1-1.2:1.0/0003:0314:0126.0001/input/input0
U: Uniq=
H: Handlers=mouse0 event0
B: PROP=0
B: EV=1b
B: KEY=fff ffff0000 0 0 0 0 0 0 0 0 0
B: ABS=f0027
B: MSC=10

sad

Offline

#4 2015-01-26 15:47:33

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,173

Re: joystick detect as mouse

My french is bad, but the pictures suggest the Arcade Controller JUYA0 Dual Arcade" is some kind of gameport - usb converter ?

What is the brand & model of the joystick device you try to connect through this converter ?


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

Board footer

Powered by FluxBB