• Recent
  • Tags
  • Popular
  • Home
  • Docs
  • Register
  • Login
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

Mame DEADZONE with Analog Controller

Scheduled Pinned Locked Moved Help and Support
deadzonemamestar wars yokexboxdrv
33 Posts 5 Posters 4.5k 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.
  • W
    wstanek @icebear81
    last edited by 1 Dec 2020, 16:16

    @icebear81
    When you run jstest, did you see numbers responding to yoke movement? You should have seen the deadzone manifest itself.

    I'm running Advmame 1.4, I have these lines in my .rc file:

    input_map[p1_dialx] joystick[2,stick,x]
    input_map[p1_dialy] joystick[2,stick,y]
    input_map[p1_lightgunx] joystick[1,0,0]
    input_map[p1_lightguny] joystick[1,0,1]
    input_map[p1_mousex] joystick[2,stick,x]
    input_map[p1_mousey] joystick[2,stick,y]
    input_map[p1_paddlex] joystick[2,stick,x]
    input_map[p1_paddley] joystick[2,stick,y]
    input_map[p1_pedalbrake] auto
    input_map[p1_pedalgas] -joystick[2,stick,y]
    input_map[p1_pedalother] auto
    input_map[p1_stickx] joystick[2,stick,x]
    input_map[p1_sticky] joystick[2,stick,y]
    input_map[p1_stickz] auto
    input_map[p1_trackballx] joystick[2,stick,x]
    input_map[p1_trackbally] joystick[2,stick,y]
    

    I've mapped several inputs to my yoke, even pedalgas, which can be used for playing Spyhunter or some such.

    Read this thread. Its about how to amend a rule for your device there.

    ws

    Latest Build: https://retropie.org.uk/forum/topic/23649/mad-planets-cabinet-build-finished?_=1578928113680

    I 1 Reply Last reply 1 Dec 2020, 16:20 Reply Quote 0
    • I
      icebear81 @wstanek
      last edited by 1 Dec 2020, 16:20

      @wstanek re: jstest .. yes it went from 0 to +/- 32767 (as expected -- I guess) .. I did not see the deadzone manifest, or at least did not notice it or no where to look for it .. output pasted was everything ..

      I will read through that thread .. thank you

      1 Reply Last reply Reply Quote 0
      • I
        icebear81
        last edited by 1 Dec 2020, 23:15

        Lets add a little twist, I found the following[1] that basically says 'make sure your analog is mapped to AD...Analog and not AD...DEC'

        I spun un AdvanceMame 1.4 which has these 3 options per direction. and .. I can only set the controller in the Dec/Inc Input .. so that goes back to, is this not even being seen as analog?

        - So first thing to check is start a game in mame, tab, "Input (general)", player 1/2, and make sure the u360 is mapped to "AD Stick... Analog" and NOT "AD Stick... Inc" nor "AD Stick... Dec", and other analog inputs you want to use the u360.  You can also do "Input (this game)", but then the fix only helps that game.
        

        Maybe I can handjam it in the config as @wstanek mentioned about -- if any one has thoughts on getting these properly config .. HELP .. thanks

        [1] http://forum.arcadecontrols.com/index.php?topic=78608.0

        1 Reply Last reply Reply Quote 0
        • I
          icebear81
          last edited by 1 Dec 2020, 23:55

          DAYUM ,.. I got motion!!! now I need to tweak it

          advmame-1.4.rc

          input_map[p1_stickx] joystick[3,stick,x]
          input_map[p1_sticky] joystick[3,stick,y]
          

          I also removed all reference to the analog setup in Input (this game) in the mame menu

          P 1 Reply Last reply 3 Dec 2020, 22:49 Reply Quote 0
          • P
            plee1024 @icebear81
            last edited by 3 Dec 2020, 22:49

            @icebear81 said in Mame DEADZONE with Analog Controller:

            DAYUM ,.. I got motion!!! now I need to tweak it

            advmame-1.4.rc

            input_map[p1_stickx] joystick[3,stick,x]
            input_map[p1_sticky] joystick[3,stick,y]
            

            I also removed all reference to the analog setup in Input (this game) in the mame menu

            did you get it working? also, having some battles with the GRS yoke but with it centering in advmame. wondering if we need to make it look like a trackball/mouse instead of a analog joystick

            I 1 Reply Last reply 5 Dec 2020, 02:20 Reply Quote 0
            • W
              wstanek
              last edited by 4 Dec 2020, 19:14

              @plee1024 @icebear81 When you launch Star Wars, go once all the way around, side to side, up and down to calibrate it. When you first see the crosshairs, they should be to the left, but after you calibrate it should be more centered. I think this was how the arcade game worked on startup as well. You have to do this every time you startup.

              Now comes the deadzone, which can cause the crosshairs to jump the center a little. With slow motion across, you'll see the crosshairs stall then jump across the center about an inch or so.

              Thats where those evdev-joystick commmands come in, and also that thread about making a UDEV rule.

              Once you get your inputs pointed and playing the game, then come back to this other deadzone issue when it starts to bother you.

              ws

              Latest Build: https://retropie.org.uk/forum/topic/23649/mad-planets-cabinet-build-finished?_=1578928113680

              I 1 Reply Last reply 5 Dec 2020, 02:22 Reply Quote 0
              • I
                icebear81 @plee1024
                last edited by 5 Dec 2020, 02:20

                @plee1024 I did get it working .. advancemame with the above. Centering is an issue -- see the follow-up in this thread. It works for me ...

                1 Reply Last reply Reply Quote 0
                • I
                  icebear81 @wstanek
                  last edited by 5 Dec 2020, 02:22

                  @wstanek Thank you again for all your help!

                  Im actually not sensing a deadzone, so that is good.

                  As for the centering. Do you do the calibration dance (around, up/down, left/right) on the high score screen or when choosing the WAVE? I have only had this work right when I get in the WAVE select, I do a roundabout and it seems pretty good.

                  I W 2 Replies Last reply 5 Dec 2020, 03:36 Reply Quote 0
                  • I
                    icebear81 @icebear81
                    last edited by 5 Dec 2020, 03:36

                    I see a slight deadzone in Spy Hunter .. I think I can live with it ..

                    1 Reply Last reply Reply Quote 0
                    • W
                      wstanek @icebear81
                      last edited by 5 Dec 2020, 06:32

                      @icebear81 You can do the calibration move at any point after it starts up, but yes, I will do it at the wave select screen.

                      If you did nothing, it would eventually self-calibrate after some play through.

                      There are several games that work well with the yoke; Space Harrier, STUN Runner, Two Tigers, Paperboy. I even have the thruster on Lunar Lander mapped to the pitch.

                      Latest Build: https://retropie.org.uk/forum/topic/23649/mad-planets-cabinet-build-finished?_=1578928113680

                      I 1 Reply Last reply 5 Dec 2020, 12:51 Reply Quote 0
                      • I
                        icebear81 @wstanek
                        last edited by 5 Dec 2020, 12:51

                        @wstanek Ive got spyhunter working nicely ... I now need to figure out the pedal

                        1 Reply Last reply Reply Quote 0
                        • W
                          wstanek
                          last edited by 18 Dec 2020, 19:43

                          @icebear81 For Spyhunter I have the pedal mapped to the pitch :

                          input_map[p1_pedalgas] -joystick[2,stick,y]
                          

                          I think this works for Paperboy too.

                          This runs the throttle for Lunar Lander:

                          llander/input_map[p1_paddlex] -joystick[2,stick,y]
                          

                          ws

                          Latest Build: https://retropie.org.uk/forum/topic/23649/mad-planets-cabinet-build-finished?_=1578928113680

                          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.

                            This community forum collects and processes your personal information.
                            consent.not_received