Recalbox Forum

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

    [7.3-Beta29][FORK] Controler issue in emulators

    GamePad/GPIO/USB encoder
    controler issue
    2
    15
    1737
    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.
    • delferius
      delferius @davidb2111 last edited by delferius

      @davidb2111 I have only forward the interessant part of the file below. Tell me if you want the entire file.

      	<inputConfig type="joystick" deviceName="openjvs_a1p1" deviceGUID="000000006f70656e6a76735f61317000" deviceNbAxes="2" deviceNbHats="0" deviceNbButtons="8">
      		<input name="left" type="axis" id="0" value="1" code="0" />
      		<input name="down" type="axis" id="1" value="-1" code="1" />
      		<input name="right" type="axis" id="0" value="-1" code="0" />
      		<input name="up" type="axis" id="1" value="1" code="1" />
      		<input name="r1" type="button" id="5" value="1" code="261" />
      		<input name="l1" type="button" id="2" value="1" code="258" />
      		<input name="y" type="button" id="0" value="1" code="256" />
      		<input name="x" type="button" id="1" value="1" code="257" />
      		<input name="b" type="button" id="3" value="1" code="259" />
      		<input name="a" type="button" id="4" value="1" code="260" />
      		<input name="hotkey" type="button" id="7" value="1" code="263" />
      		<input name="select" type="button" id="7" value="1" code="263" />
      		<input name="start" type="button" id="6" value="1" code="262" />
      	</inputConfig>
      	<inputConfig type="joystick" deviceName="openjvs_a1p2" deviceGUID="000000006f70656e6a76735f61317000" deviceNbAxes="2" deviceNbHats="0" deviceNbButtons="8">
      		<input name="left" type="axis" id="0" value="1" code="0" />
      		<input name="down" type="axis" id="1" value="-1" code="1" />
      		<input name="right" type="axis" id="0" value="-1" code="0" />
      		<input name="up" type="axis" id="1" value="1" code="1" />
      		<input name="r1" type="button" id="5" value="1" code="261" />
      		<input name="l1" type="button" id="2" value="1" code="258" />
      		<input name="y" type="button" id="0" value="1" code="256" />
      		<input name="x" type="button" id="1" value="1" code="257" />
      		<input name="b" type="button" id="3" value="1" code="259" />
      		<input name="a" type="button" id="4" value="1" code="260" />
      		<input name="hotkey" type="button" id="7" value="1" code="263" />
      		<input name="select" type="button" id="7" value="1" code="263" />
      		<input name="start" type="button" id="6" value="1" code="262" />
      	</inputConfig>
      
      

      I also try a full build with a clean output folder, in case it get corrupted...

      davidb2111 1 Reply Last reply Reply Quote 0
      • davidb2111
        davidb2111 Staff @delferius last edited by

        @delferius said in [7.3-Beta29][FORK] Controler issue in emulators:

        @davidb2111 I have only forward the interessant part of the file below. Tell me if you want the entire file.

        	<inputConfig type="joystick" deviceName="openjvs_a1p1" deviceGUID="000000006f70656e6a76735f61317000" deviceNbAxes="2" deviceNbHats="0" deviceNbButtons="8">
        		<input name="left" type="axis" id="0" value="1" code="0" />
        		<input name="down" type="axis" id="1" value="-1" code="1" />
        		<input name="right" type="axis" id="0" value="-1" code="0" />
        		<input name="up" type="axis" id="1" value="1" code="1" />
        		<input name="r1" type="button" id="5" value="1" code="261" />
        		<input name="l1" type="button" id="2" value="1" code="258" />
        		<input name="y" type="button" id="0" value="1" code="256" />
        		<input name="x" type="button" id="1" value="1" code="257" />
        		<input name="b" type="button" id="3" value="1" code="259" />
        		<input name="a" type="button" id="4" value="1" code="260" />
        		<input name="hotkey" type="button" id="7" value="1" code="263" />
        		<input name="select" type="button" id="7" value="1" code="263" />
        		<input name="start" type="button" id="6" value="1" code="262" />
        	</inputConfig>
        	<inputConfig type="joystick" deviceName="openjvs_a1p2" deviceGUID="000000006f70656e6a76735f61317000" deviceNbAxes="2" deviceNbHats="0" deviceNbButtons="8">
        		<input name="left" type="axis" id="0" value="1" code="0" />
        		<input name="down" type="axis" id="1" value="-1" code="1" />
        		<input name="right" type="axis" id="0" value="-1" code="0" />
        		<input name="up" type="axis" id="1" value="1" code="1" />
        		<input name="r1" type="button" id="5" value="1" code="261" />
        		<input name="l1" type="button" id="2" value="1" code="258" />
        		<input name="y" type="button" id="0" value="1" code="256" />
        		<input name="x" type="button" id="1" value="1" code="257" />
        		<input name="b" type="button" id="3" value="1" code="259" />
        		<input name="a" type="button" id="4" value="1" code="260" />
        		<input name="hotkey" type="button" id="7" value="1" code="263" />
        		<input name="select" type="button" id="7" value="1" code="263" />
        		<input name="start" type="button" id="6" value="1" code="262" />
        	</inputConfig>
        
        

        I also try a full build with a clean output folder, in case it get corrupted...

        Do you skip d-pad and fill only joystick section ?

        delferius 1 Reply Last reply Reply Quote 0
        • delferius
          delferius @davidb2111 last edited by

          @davidb2111 No I skip joystick (analog) part and fill dpad for openjvs a1p1/openjvs a1p2 controllers.
          For 8bitdo SF30 I assign all inputs and it's the same issue.

          delferius 1 Reply Last reply Reply Quote 0
          • delferius
            delferius @delferius last edited by

            Fresh and clean build test of this morning. Always the same issue.
            I make my current build from the master, I will try from 7.3-Beta 30.

            delferius 1 Reply Last reply Reply Quote 0
            • delferius
              delferius @delferius last edited by

              @davidb2111
              Finally when I disable my openJVS driver, all work perfect, my emulate controller seem to enter in conflict with something.
              For information, I had no issues with my driver on the 6.1.1 forked release :/.

              delferius 1 Reply Last reply Reply Quote 0
              • delferius
                delferius @delferius last edited by

                @davidb2111
                When I select "Game library driver" instead of "automatic" driver in the ES controller settings my openJVS controller work as expected but not the 8bitdo SF30 controller. What exactly happen on usage of one or the other driver settings?

                davidb2111 1 Reply Last reply Reply Quote 0
                • davidb2111
                  davidb2111 Staff @delferius last edited by

                  @delferius

                  I don't remember well. I think it's how the controller is processed:

                  • through SDL
                  • through udev
                  delferius 1 Reply Last reply Reply Quote 0
                  • delferius
                    delferius @davidb2111 last edited by

                    @davidb2111 Is there a way to solve my problem? In the 6.1.1 version all worked fine. What's exactly changed behind this driver setting?

                    davidb2111 1 Reply Last reply Reply Quote 0
                    • davidb2111
                      davidb2111 Staff @delferius last edited by

                      @delferius

                      There are so many components that changed since 6.1.1 I can't enumerate all of them: kernel, sdl, EmulationStation, python, ...

                      I did not catch the exact problem you have and I don't have that type of controller. This makes the resolution of the problem twice as hard, sorry.

                      First, what is OpenJVS? And how do you connect it to the card ?

                      delferius 1 Reply Last reply Reply Quote 0
                      • delferius
                        delferius @davidb2111 last edited by Zing

                        @davidb2111
                        First, thanks for your help.

                        OpenJVS is a python module to emulate Joypad from RS485 JVS arcade protocol.
                        My module talk to the arcade IO-board throught Serial connection and trigger inputs over uinput virtual joypad device.

                        You can find the source code over here:
                        https://gitlab.com/gaper-private/openjvs/-/tree/python3

                        All work perfect on emulation station. But when I want to used OpenJVS controller on emulator, I must select "Game library driver" instead of "automatic" driver in the ES controller setting.

                        I use 4 different joypads on my system:
                        8bitdo SF30
                        8bitdo M30
                        openjvs_a1p1
                        openjvs_a1p2

                        8bitdo controllers seem to work only with "System driver" and OpenJVS with "Game library driver". So I can't use 8bitdo and OpenJVS controllers at the same times (to play ninja turtle with 4 player for example).

                        To reproduce the issue you can use a python script with uinput library. If you want I can write it for you.

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

                          🆙🆙🆙🆙

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

                          Want to support us ?

                          85
                          Online

                          99.6k
                          Users

                          28.1k
                          Topics

                          187.1k
                          Posts

                          Copyright © 2021 recalbox.com