Recalbox Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • recalbox.com
    • Gitlab repository
    • Documentation
    • Discord

    Y axis inverted in Switch bluetooth controller

    GamePad/GPIO/USB encoder
    axis inverted switch bluetooth
    3
    14
    2702
    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.
    • xphere
      xphere last edited by

      Hi,

      I have succesfully paired a nintendo switch pro-controller (chinese clone from aliexpress), and everything seems to work fine, except the vertical axis (Y) of the analog controller. On all emulators when I press up, it goes down, and vice-versa.

      Do you know how I can fix this?

      Thanks a lot!

      The controller tha tI am talking about can be found here.

      OyyoDams 1 Reply Last reply Reply Quote 0
      • OyyoDams
        OyyoDams Staff @xphere last edited by

        @xphere hi,

        Just remap your controller in Recalbox options.

        1 Reply Last reply Reply Quote 0
        • xphere
          xphere last edited by

          Thanks OyyoDams!

          That is the first thing I tried, but no matter how I configure the joystick, the Y axis is always inverted.

          I have tried in the configuration to press up the joystick when is asked to press "joy up" and still appears inverted. I have tried to press down the joystick when is asked to press "joy up", but again, the Y axis is inverted.

          Maybe I should look on some config file, where I can see the exact mapping of the controller?

          OyyoDams 1 Reply Last reply Reply Quote 0
          • OyyoDams
            OyyoDams Staff @xphere last edited by

            @xphere can you make a support archive ?

            xphere 1 Reply Last reply Reply Quote 1
            • xphere
              xphere last edited by

              Sure! I will do!

              Btw, I have seen that if I open a game and enter into retroarch config, I can swap direction of Y axis and then works fine, but since config is not stored, that configuration is lost when I switch to another game.

              1 Reply Last reply Reply Quote 0
              • xphere
                xphere @OyyoDams last edited by

                @OyyoDams What do you mean by "support archive"? do you mean to open an issue in GitLab?

                Scavy 1 Reply Last reply Reply Quote 0
                • Scavy
                  Scavy Global moderator @xphere last edited by

                  @xphere
                  Via recalbox-manager
                  Open your internet browser:
                  On Windows http://recalbox/help or http://ip_recalbox /help
                  On Mac / Linux http://recalbox.local/help.
                  A link will be automatically uploaded and a link will be given to you.

                  Post the link in your current topic on the forum or in the issue you have opened.

                  • RPi0w : GPi Case
                  • RPi4-2Go : Nespi4case - SN30 pro+ & PS3 DualShock pads - Logitech M170 (BT) keyboard/mouse set
                  • Odroid Go Advance & Go Super
                  • PC : CPU i5 core 2.8/3.4 GHz - GPU GeForce 850M - RAM 8Go DDR3L
                  xphere 1 Reply Last reply Reply Quote 1
                  • xphere
                    xphere @Scavy last edited by

                    @Scavy thanks a lot! I will do asap!!

                    1 Reply Last reply Reply Quote 0
                    • xphere
                      xphere last edited by

                      here you have the link! https://transfer.sh/7VbNO/recalbox-support-e50530f9-944d-8056-a8ee-1278dce1bf44.tar.gz

                      If you want, I can raise an issue too.

                      Scavy OyyoDams 2 Replies Last reply Reply Quote 0
                      • Scavy
                        Scavy Global moderator @xphere last edited by

                        @xphere @OyyoDams

                        • RPi0w : GPi Case
                        • RPi4-2Go : Nespi4case - SN30 pro+ & PS3 DualShock pads - Logitech M170 (BT) keyboard/mouse set
                        • Odroid Go Advance & Go Super
                        • PC : CPU i5 core 2.8/3.4 GHz - GPU GeForce 850M - RAM 8Go DDR3L
                        1 Reply Last reply Reply Quote 1
                        • OyyoDams
                          OyyoDams Staff @xphere last edited by

                          @xphere please try the following. Edit es_input.cfg file, and replace:

                          	<inputConfig type="joystick" deviceName="Pro Controller" deviceGUID="050000007e0500000620000001000000" deviceNbAxes="4" deviceNbHats="1" deviceNbButtons="16">
                          		<input name="a" type="button" id="0" value="1" code="304" />
                          		<input name="b" type="button" id="2" value="1" code="306" />
                          		<input name="down" type="hat" id="0" value="4" code="16" />
                          		<input name="hotkey" type="button" id="12" value="1" code="316" />
                          		<input name="joystick1left" type="axis" id="0" value="-1" code="0" />
                          		<input name="joystick1up" type="axis" id="1" value="1" code="1" />
                          		<input name="joystick2left" type="axis" id="2" value="-1" code="3" />
                          		<input name="joystick2up" type="axis" id="3" value="1" code="4" />
                          		<input name="l2" type="button" id="6" value="1" code="310" />
                          		<input name="l3" type="button" id="10" value="1" code="314" />
                          		<input name="left" type="hat" id="0" value="8" code="16" />
                          		<input name="pagedown" type="button" id="5" value="1" code="309" />
                          		<input name="pageup" type="button" id="4" value="1" code="308" />
                          		<input name="r2" type="button" id="7" value="1" code="311" />
                          		<input name="r3" type="button" id="11" value="1" code="315" />
                          		<input name="right" type="hat" id="0" value="2" code="16" />
                          		<input name="select" type="button" id="8" value="1" code="312" />
                          		<input name="start" type="button" id="9" value="1" code="313" />
                          		<input name="up" type="hat" id="0" value="1" code="16" />
                          		<input name="x" type="button" id="1" value="1" code="305" />
                          		<input name="y" type="button" id="3" value="1" code="307" />
                          	</inputConfig>
                          

                          by

                          	<inputConfig type="joystick" deviceName="Pro Controller" deviceGUID="050000007e0500000620000001000000" deviceNbAxes="4" deviceNbHats="1" deviceNbButtons="16">
                          		<input name="a" type="button" id="0" value="1" code="304" />
                          		<input name="b" type="button" id="2" value="1" code="306" />
                          		<input name="down" type="hat" id="0" value="4" code="16" />
                          		<input name="hotkey" type="button" id="12" value="1" code="316" />
                          		<input name="joystick1left" type="axis" id="0" value="-1" code="0" />
                          		<input name="joystick1up" type="axis" id="1" value="-1" code="1" />
                          		<input name="joystick2left" type="axis" id="2" value="-1" code="3" />
                          		<input name="joystick2up" type="axis" id="3" value="-1" code="4" />
                          		<input name="l2" type="button" id="6" value="1" code="310" />
                          		<input name="l3" type="button" id="10" value="1" code="314" />
                          		<input name="left" type="hat" id="0" value="8" code="16" />
                          		<input name="pagedown" type="button" id="5" value="1" code="309" />
                          		<input name="pageup" type="button" id="4" value="1" code="308" />
                          		<input name="r2" type="button" id="7" value="1" code="311" />
                          		<input name="r3" type="button" id="11" value="1" code="315" />
                          		<input name="right" type="hat" id="0" value="2" code="16" />
                          		<input name="select" type="button" id="8" value="1" code="312" />
                          		<input name="start" type="button" id="9" value="1" code="313" />
                          		<input name="up" type="hat" id="0" value="1" code="16" />
                          		<input name="x" type="button" id="1" value="1" code="305" />
                          		<input name="y" type="button" id="3" value="1" code="307" />
                          	</inputConfig>
                          

                          Then try again with a game

                          1 Reply Last reply Reply Quote 1
                          • xphere
                            xphere last edited by xphere

                            @OyyoDams said in Y axis inverted in Switch bluetooth controller:

                            050000007e0500000620000001000000

                            Thanks for the reply. I've done the modification, but the issue persist. I've done the following:
                            1- Access via sftp and modify the file
                            2- Reboot recalbox
                            3- Tried the emulators: snes, genesis, neo-geo and Doom. All still have the Y axis inverted.

                            It's strange, because in the config file the Y axis seems to be inverted in the new cnofig file, so, should work...

                            Any other idea?

                            EDIT: I have tried modifying another line, just for debugging. So I've replaced, for the same controller:

                            		<input name="joystick1left" type="axis" id="0" value="-1" code="0" />
                            

                            By this one:

                            	<input name="joystick1left" type="axis" id="0" value="1" code="0" />
                            

                            But also, no effect, so the X axis has not been inverted either... maybe this is not the right controller config that should be modifying?

                            OyyoDams 1 Reply Last reply Reply Quote 0
                            • OyyoDams
                              OyyoDams Staff @xphere last edited by

                              @Bkg2k ?

                              1 Reply Last reply Reply Quote 0
                              • xphere
                                xphere last edited by

                                fyi... this issue seems to be related to: https://forum.recalbox.com/topic/3265/wii-classic-controller-pro-axis-reversed

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

                                Want to support us ?

                                102
                                Online

                                98.7k
                                Users

                                28.1k
                                Topics

                                187.0k
                                Posts

                                Copyright © 2021 recalbox.com