RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login
    Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

    evdev-joystick.tar.xz in Stella

    Scheduled Pinned Locked Moved Help and Support
    stellaataripaddles2600-daptorevdev-joystick
    13 Posts 4 Posters 2.1k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • P
      polish.potato
      last edited by polish.potato

      The text is as follows:

      EVDEV-JOYSTICK

      This program is based on G25manage, located at:
      https://github.com/VDrift/vdrift/tree/master/tools/G25manage

      It is developed by Stephen Anthony, and released under the GPL/v2.

      evdev-joystick is used to set the deadzone for Linux 'evdev' joystick devices.
      Currently, other than G25manage there is no other standalone program available
      to perform such calibration. This program was originally developed for Stella
      (stella.sf.net), an Atari 2600 emulator, and as such much of this document
      refers to Stella. The program itself can be used to calibrate any joystick
      for any application, though, and is not specific to Stella.

      Short Explanation (Stella users with Stelladaptor, 2600-daptor, etc.)

      1. Decompress the archive
      2. Build the application by typing 'make'
      3. Install it by typing 'sudo make install'
      4. Unplug your 'daptor device, re-plug them, and play a game.

      Long Explanation (For the curious, or if something doesn't work, etc.)

      1. Decompress the archive

      2. Build the application by typing 'make'

      3. Type './evdev-joystick --l'. For me, it produces output as follows:

      /dev/input/by-id/usb-Microsoft_Inc._Controller_101F9B0-event-joystick
      /dev/input/by-id/usb-Microchip_Technology_Inc._2600-daptor_II-event-joystick
      /dev/input/by-id/usb-RetroUSB.com_SNES_RetroPort-event-joystick

      1. Make note of the name of the device. For 2600-daptor II users, this
        would be:

      /dev/input/by-id/usb-Microchip_Technology_Inc._2600-daptor_II-event-joystick

      1. Check the current deadzone (known as 'flatness') by typing:
        'evdev-joystick --s <NAME_OF_DEVICE>'
        Again, for me, this will output the following:

      Absolute axis 0x00 (0) (X Axis) (min: 0, max: 4095, flatness: 128 (=0.00%), fuzz: 15)
      Absolute axis 0x01 (1) (Y Axis) (min: 0, max: 4095, flatness: 128 (=0.00%), fuzz: 15)
      Absolute axis 0x02 (2) (Z Axis) (min: 0, max: 15, flatness: 0 (=0.00%), fuzz: 0)

      1. Notice that the flatness/deadzone for axes 0 & 1 is 128.

      2. Now, we change the deadzone by typing 'evdev-joystick --s <NAME_OF_DEVICE> --d 0'

      3. Now check the current deadzone again by typing:
        'evdev-joystick --s <NAME_OF_DEVICE>'

      Absolute axis 0x00 (0) (X Axis) (min: 0, max: 4095, flatness: 0 (=0.00%), fuzz: 15)
      Absolute axis 0x01 (1) (Y Axis) (min: 0, max: 4095, flatness: 0 (=0.00%), fuzz: 15)
      Absolute axis 0x02 (2) (Z Axis) (min: 0, max: 15, flatness: 0 (=0.00%), fuzz: 0)

      1. Note that the 'flatness' has changed to 0? If so, then the program is
        working as intended.

      2. Note that there are other options to the program. You can change the
        'fuzz' value, change attributes for only certain axis, etc. See the
        options by typing 'evdev-joystick'.

      3. Once you're certain that the application is working, type 'sudo make install'
        to install it.

      RULES File

      Included in the archive is a udev .rules file that will automatically run
      evdev-joystick with the correct parameters for a Stelladaptor, 2600-daptor,
      and 2600-daptor II. If you have another joystick you wish to modify,
      simply add the proper entry to the .rules file. Note that it is necessary
      to add all joysticks (where you want to change the deadzone) to this file,
      since the settings are lost when the device is unplugged and plugged in again.
      When using a .rules file, the system will automatically re-run evdev-joystick
      and set your deadzone values again.

      1 Reply Last reply Reply Quote 0
      • P
        polish.potato
        last edited by polish.potato

        NOW... I just want to know where to place it in the card and where to write the command. Do I quit emulationstation and write the command? I don't want to mess anything up.

        1 Reply Last reply Reply Quote 0
        • edmaul69E
          edmaul69 @polish.potato
          last edited by

          @polish-potato so out of curiosity what do you mean by your getting clipped?

          1 Reply Last reply Reply Quote 0
          • P
            polish.potato
            last edited by polish.potato

            On the side of the screen. I am using 2600-daptor 2. Tell me am I crazy? It seems to be on the side left of the screen

            P 1 Reply Last reply Reply Quote 0
            • P
              polish.potato @polish.potato
              last edited by polish.potato

              Contacted 2600-daptors manufacturer and he said:

              The problem is a "deadspot" on the left side of the screen. When you reach that spot, the player will stop moving, though if you keep turning the paddle, the player will resume moving again after a bit.

              I don't have raspberry pi handy, so I can't give you step by step instructions. Basically you download and uncompressed the files to get them on the memory card. It includes a "readme" file with instructions on how to then install it.

              Tom

              So yes, it is a problem! Can someone tell me what to do please?

              1 Reply Last reply Reply Quote 0
              • P
                polish.potato
                last edited by

                Hi I am back with questions.

                How do I do these steps? Help would be much appreciated.
                2) Build the application by typing 'make'
                3) Install it by typing 'sudo make install'

                Thanks guys.

                mediamogulM 1 Reply Last reply Reply Quote 0
                • mediamogulM
                  mediamogul Global Moderator @polish.potato
                  last edited by mediamogul

                  @polish-potato

                  Assuming you're following directions that told you to do this, navigate from the command line using cd to whichever directory contains the source you want to build. From there you should be able to type 'make'. Once completed, you can then type 'make install'.

                  RetroPie v4.5 • RPi3 Model B • 5.1V 2.5A PSU • 16GB SanDisk microSD • 512GB External Drive

                  1 Reply Last reply Reply Quote 0
                  • P
                    polish.potato
                    last edited by polish.potato

                    I did all that when it was being compiled it gave me an error. I opened the folder like you said and typed make but when it loaded everything it gave me three errors. I'll try to dl again and try again. It'll Probably be the same thing.

                    I don't know if I am imagining things but the paddles don't seem to be sticking on this version maybe it's my imagination.

                    mediamogulM 1 Reply Last reply Reply Quote 0
                    • mediamogulM
                      mediamogul Global Moderator @polish.potato
                      last edited by mediamogul

                      @polish-potato said in evdev-joystick.tar.xz in Stella:

                      I don't know if I am imagining things but the paddles don't seem to be sticking on this version maybe it's my imagination.

                      The issue with paddles sticking to the sides was actually solved in version 4.7. From there on, each game has a set movement range based on an internal database and can be adjusted on a game-by-game basis from the 'Game Properties...' menu.

                      RetroPie v4.5 • RPi3 Model B • 5.1V 2.5A PSU • 16GB SanDisk microSD • 512GB External Drive

                      1 Reply Last reply Reply Quote 1
                      • P
                        polish.potato
                        last edited by

                        Thanks that's all I needed to hear.

                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post

                        Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.

                        Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.