Results 1 to 3 of 3

Thread: Designating input device for two joysticks?

  1. #1

    Designating input device for two joysticks?

    I have a sidewinder 3D pro connected to my gameport all the time and a Belkin gamepad connected to a usb port. The gamepad is sometime not connected so the problem I have is that if I reboot while it is connected then it will be assigned to /dev/js0 and the joystick will be assigned to /dev/js1. If the gamepad is not connected when I boot up then of course the joystick becomes /dev/js0 and the gamepad /dev/js1 when I plug it in again.

    So I want to know how to tell linux to assign the 3D pro to /dev/js0 and the belkin gamepad to /dev/js1 so they will never change from that? Is it something to do with aliases like you do with your ethernet devices? I don't know which config file has that though.

  2. #2

    Re: Designating input device for two joysticks?

    I found this while searching on google. I haven't tested this as I don't have a need, but you can be our beta tester

    It seems you can achieve this by modifying your XF86Config or file in such a way:

    Section "InputDevice"
    Identifier "Joystick"
    Driver "joystick"
    Option "Device" "/dev/js0"

    From my take on this, you could insert this into your XF86Config or file and where it say's Driver "joystick" change this to "sidewinder" and perhaps that would put the sidewinder on /dev/js0 maybe.

    I'm not really liking the way that works, but I was also thinking that during the module loading that perhaps you can assign the device. Maybe something like modprobe sidewinder /dev/js0 or something along those lines. You can also have it read from /etc/modules.conf.

    I have a joystick myself so I'll practice with somethings and see what I come up with, but I can't promise anything because it's not working in Linux atm. I can't even get my kernel to see my joystick.
    AMD Athlon 2200+ 1.8Ghz
    1280MB PC-3200 CAS2.5 RAM
    ATI Radeon 9600 Pro 128MB AGP
    Western Digital WDC WD2500JB-00FUA0 250GB 7200 rpm ATA/133
    Seagate ST3200822A 200GB 7200 rpm ATA/133
    Western Digital WDC WD1200BB-00CAA1 120GB 7200 rpm ATA/133
    Western Digital WDC WD800BB-00CAA1 80GB 7200 rpm ATA/133
    Maxtor OneTouch 2HA43R32 1TB 7200 rpm USB 2.0
    D-Link DFE-530TX+ 10/100 NIC
    D-Link DWL-G520 Rev.A
    Debian 5.0r1 Lenny

  3. #3

    Re: Designating input device for two joysticks?

    Thanks SkyNet. I think the first suggestion you gave allows me to use the joystick as a pointing device in X (which sounds like a fun thing to try)

    The second one sounds more like it I was thinking that it is probably done similar to how we do ethernet cards (ie. alias eth0 tulip). Maybe "alias /dev/js0 sidewinder" or even "alias js0 sidewinder"? But I can't for the life of me figure out which module controls the gamepad, all I do is plug it in and it just works.

    I will try the modprobe idea you gave me and a few other things I have been thinking about and post back.

Similar Threads

  1. loop with input file?
    By sabre in forum Linux - Software, Applications & Programming
    Replies: 9
    Last Post: 06-22-2010, 10:48 PM
  2. Could use some input
    By SpooksŪ in forum Linux - General Topics
    Replies: 10
    Last Post: 05-16-2006, 03:43 PM
  3. My First Firewall box Need your input
    By ArtM in forum Linux - General Topics
    Replies: 2
    Last Post: 04-23-2005, 12:52 PM
  4. Need help debugging sound input
    By Tyr_7BE in forum Linux - General Topics
    Replies: 2
    Last Post: 01-30-2005, 09:20 PM
  5. Java Input/Output
    By vacuumtube in forum Windows - General Topics
    Replies: 0
    Last Post: 01-18-2005, 07:22 AM


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts