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

    Maldita Castilla joypad support

    Scheduled Pinned Locked Moved Help and Support
    maldita castill
    49 Posts 8 Posters 15.7k 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.
    • pjftP
      pjft @hiulit
      last edited by

      @hiulit hi. Did you end up sitting this out? I'm going through the exact same process with xboxdrv on another thread with @mediamogul but seem to have hit a similar roadblock.

      Would love to hear your progress and status.

      Thanks.

      hiulitH 1 Reply Last reply Reply Quote 0
      • hiulitH
        hiulit @pjft
        last edited by

        @pjft Not on my part, I haven't been successful :(

        My little contributions to the RetroPie project:

        • Shell-Script-Boilerplate
        • Fun-Facts-Splashscreens
        • Limit-Last-Played-Games
        1 Reply Last reply Reply Quote 0
        • ExarKunIvE
          ExarKunIv
          last edited by

          so here is what i have found out. Maldita Castilla will not play unless it sees the controller input with a input0

          i had to remove all my settings and IR input to even get it to work.

          I dont know if @mediamogul knows how to get xboxdrv to set the keyboard map to input0

          for me my IR input takes that spot. so this game will not work for me.

          maybe there is a way to reserve that placement for different input. that is beyond me

          as you see my HID it taking the input0 and this is what Maldita Castilla looks for its input. so we need to reserve this input from being taken and set it for a keyboard map.

          I know this is not a answer but more info never hurts.

          I: Bus=0003 Vendor=1d57 Product=ad02 Version=0110
          N: Name="HID 1d57:ad02"
          P: Phys=usb-3f980000.usb-1.4/input0
          S: Sysfs=/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.4/1-1.4:1.0/0003:1D57:AD02.0001/input/input0
          U: Uniq=
          H: Handlers=sysrq kbd leds event0
          B: PROP=0
          B: EV=12001f
          B: KEY=3007f 0 0 0 0 483ffff 17aff32d bf544446 0 0 1 130c13 b17c007 ffa67bfa d941dfff febeffdf f3cfffff ffffffff fffffffe
          B: REL=40
          B: ABS=1 0
          B: MSC=10
          B: LED=7
          
          ```

          RPi3B+ / 200GB/ RetroPie v4.5.14, RPi4 Model B 4gb / 256gb / RetroPie 4.8.2
          RPi5 4gb / 512gb / RetroPie 4.8.9 -Basic
          Maintainer of RetroPie-Extra .

          B 1 Reply Last reply Reply Quote 1
          • B
            backstander @ExarKunIv
            last edited by

            @ExarKunIv
            Does your joystick/gamepad use this IR input?

            If not try plugging in your joystick/gamepad into USB port 1 on your RPi
            Image

            ExarKunIvE 1 Reply Last reply Reply Quote 0
            • pjftP
              pjft
              last edited by

              Oh, wow. This is definitely a great find.

              I am unsure of how exactly we'll be able to systematically fix this, but knowing about this can already help narrowing down approaches to make it work.

              If you start your OS with just a keyboard plugged in, and then plug in your controller, and then unplug the keyboard, will input0 be free? If you run xboxdrv from SSH, will it create a virtual pad on input0?

              1 Reply Last reply Reply Quote 0
              • ExarKunIvE
                ExarKunIv @backstander
                last edited by ExarKunIv

                @backstander

                i have a 8bitdo. so sadly this will not work for me
                and i use the IR for KODI and it is connect to USB 3

                RPi3B+ / 200GB/ RetroPie v4.5.14, RPi4 Model B 4gb / 256gb / RetroPie 4.8.2
                RPi5 4gb / 512gb / RetroPie 4.8.9 -Basic
                Maintainer of RetroPie-Extra .

                1 Reply Last reply Reply Quote 0
                • ExarKunIvE
                  ExarKunIv
                  last edited by

                  I: Bus=0003 Vendor=1d57 Product=ad02 Version=0110
                  N: Name="HID 1d57:ad02"
                  P: Phys=usb-3f980000.usb-1.4/input0
                  S: Sysfs=/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.4/1-1.4:1.0/0003:1D57:AD02.0001/input/input0
                  U: Uniq=
                  H: Handlers=sysrq kbd leds event0
                  B: PROP=0
                  B: EV=12001f
                  B: KEY=3007f 0 0 0 0 483ffff 17aff32d bf544446 0 0 1 130c13 b17c007 ffa67bfa d941dfff febeffdf f3cfffff ffffffff fffffffe
                  B: REL=40
                  B: ABS=1 0
                  B: MSC=10
                  B: LED=7
                  
                  I: Bus=0003 Vendor=1d57 Product=ad02 Version=0110
                  N: Name="HID 1d57:ad02"
                  P: Phys=usb-3f980000.usb-1.4/input1
                  S: Sysfs=/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.4/1-1.4:1.1/0003:1D57:AD02.0002/input/input1
                  U: Uniq=
                  H: Handlers=mouse0 event1
                  B: PROP=0
                  B: EV=17
                  B: KEY=1f0000 0 0 0 0 0 0 0 0
                  B: REL=103
                  B: MSC=10
                  
                  I: Bus=0000 Vendor=0000 Product=0000 Version=0000
                  N: Name="Xbox Gamepad (userspace driver)"
                  P: Phys=
                  S: Sysfs=/devices/virtual/input/input2
                  U: Uniq=
                  H: Handlers=js0 event2
                  B: PROP=0
                  B: EV=b
                  B: KEY=7fdb0000 0 0 0 0 0 0 0 0 0
                  B: ABS=3001b
                  
                  I: Bus=0005 Vendor=3810 Product=0009 Version=0100
                  N: Name="8Bitdo FC30 Pro"
                  P: Phys=b8:27:eb:47:c7:78
                  S: Sysfs=/devices/platform/soc/3f201000.uart/tty/ttyAMA0/hci0/hci0:11/0005:3810:0009.0003/input/input3
                  U: Uniq=e4:17:d8:7a:6a:7d
                  H: Handlers=js1 event3
                  B: PROP=0
                  B: EV=1b
                  B: KEY=ffff0000 0 0 0 0 0 0 0 0 0
                  B: ABS=30627
                  B: MSC=10
                  

                  here is my inputs. and i know to fix the problem all i have to do it disconnect the HID, but i have it hardwired to my Pie so it is a little hard and defeats the point.

                  RPi3B+ / 200GB/ RetroPie v4.5.14, RPi4 Model B 4gb / 256gb / RetroPie 4.8.2
                  RPi5 4gb / 512gb / RetroPie 4.8.9 -Basic
                  Maintainer of RetroPie-Extra .

                  1 Reply Last reply Reply Quote 0
                  • hiulitH
                    hiulit
                    last edited by hiulit

                    I'm using arcade buttons via GPIO using Adafruit's Retrograme, a GPIO-to-virtual-keyboard utility, so essentially I have two keyboards connected to the Raspberry Pi.

                    The keyboard connected to the USB is always input0.
                    And the virtual keyboard is input1. So Maldita Castilla will never work with this one :(

                    Is there an 'easy' way (or any kind of way :P) to change input0 for input1?

                    Also, if I connect the keyboard to the USB no. 2 (as shown in the image above) and I have an 8Bitdo via bluetooth, will the 8Bitdo be input0 or will it be the keyboard?

                    My little contributions to the RetroPie project:

                    • Shell-Script-Boilerplate
                    • Fun-Facts-Splashscreens
                    • Limit-Last-Played-Games
                    1 Reply Last reply Reply Quote 0
                    • hiulitH
                      hiulit
                      last edited by

                      Ok, when I launch Maldita Castilla via terminal, I see this code:

                      GAMEPAD: 4 axis values (last) at 0x76289660
                      GAMEPAD: Enumerating 5
                      GAMEPAD: device name 8Bitdo NES30 GamePad
                      GAMEPAD: buttons - 16, axes - 8
                      GAMEPAD: 4 axis values (last) at 0x76289620
                      GAMEPAD: 4 axis values (last) at 0x76289600
                      GAMEPAD: 4 axis values (last) at 0x762895e0
                      

                      So, it recognizes the gamepad, right? Shouldn't it be working then? :(

                      My little contributions to the RetroPie project:

                      • Shell-Script-Boilerplate
                      • Fun-Facts-Splashscreens
                      • Limit-Last-Played-Games
                      ExarKunIvE 1 Reply Last reply Reply Quote 0
                      • ExarKunIvE
                        ExarKunIv @hiulit
                        last edited by ExarKunIv

                        @hiulit

                        one would think, but as of yet no one knows. personally unless someone goes in to the code and changes something to have the game look for other inputs i don't think it will work for anyone who has more then one thing connected to the pi. or is using xboxdrv.

                        i hope, but im not holding my breath

                        RPi3B+ / 200GB/ RetroPie v4.5.14, RPi4 Model B 4gb / 256gb / RetroPie 4.8.2
                        RPi5 4gb / 512gb / RetroPie 4.8.9 -Basic
                        Maintainer of RetroPie-Extra .

                        hiulitH 1 Reply Last reply Reply Quote 0
                        • hiulitH
                          hiulit @ExarKunIv
                          last edited by

                          @ExarKunIv But I tried it with no keyboard, only the gamepad, and still, nothing :(
                          Would it be possible to change js0(or any other input) into input0 so Maldita Castilla can see it?

                          My little contributions to the RetroPie project:

                          • Shell-Script-Boilerplate
                          • Fun-Facts-Splashscreens
                          • Limit-Last-Played-Games
                          ExarKunIvE 1 Reply Last reply Reply Quote 0
                          • ExarKunIvE
                            ExarKunIv @hiulit
                            last edited by

                            @hiulit

                            not that i know of.

                            what input is your conroller?

                            RPi3B+ / 200GB/ RetroPie v4.5.14, RPi4 Model B 4gb / 256gb / RetroPie 4.8.2
                            RPi5 4gb / 512gb / RetroPie 4.8.9 -Basic
                            Maintainer of RetroPie-Extra .

                            hiulitH 1 Reply Last reply Reply Quote 0
                            • hiulitH
                              hiulit @ExarKunIv
                              last edited by

                              @ExarKunIv I'm telling you this off the top of my head but I think i have:

                              • input0 - don't know what it is
                              • input1 - keyboard
                              • js0- controller

                              And when I have the GPIO buttons as a virtual keyboard I think they are input2.

                              I'll tell you more specifically when I get home ;)

                              My little contributions to the RetroPie project:

                              • Shell-Script-Boilerplate
                              • Fun-Facts-Splashscreens
                              • Limit-Last-Played-Games
                              1 Reply Last reply Reply Quote 0
                              • hiulitH
                                hiulit
                                last edited by

                                This is what I get when I enter cat /proc/bus/input/devices.
                                I only have a usb keyboard and a bluetooth 8Bitdo gamepad.

                                What is input0?

                                I: Bus=0003 Vendor=04f3 Product=0103 Version=0111
                                N: Name="HID 04f3:0103"
                                P: Phys=usb-3f980000.usb-1.5/input0
                                S: Sysfs=/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.5/1-1.5:1.0/0003:04F3:0103.0001/input/input0
                                U: Uniq=
                                H: Handlers=sysrq kbd leds event0 
                                B: PROP=0
                                B: EV=120013
                                B: KEY=10000 7 ff800000 7ff febeffdf f3cfffff ffffffff fffffffe
                                B: MSC=10
                                B: LED=7
                                
                                I: Bus=0003 Vendor=04f3 Product=0103 Version=0111
                                N: Name="HID 04f3:0103"
                                P: Phys=usb-3f980000.usb-1.5/input1
                                S: Sysfs=/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.5/1-1.5:1.1/0003:04F3:0103.0002/input/input1
                                U: Uniq=
                                H: Handlers=kbd event1 
                                B: PROP=0
                                B: EV=1f
                                B: KEY=3007f 0 0 0 0 483ffff 17aff32d bf544446 0 0 1 130c13 b17c000 267bfa d941dfed 9e1680 4400 0 10000002
                                B: REL=40
                                B: ABS=1 0
                                B: MSC=10
                                
                                I: Bus=0005 Vendor=2820 Product=0009 Version=0100
                                N: Name="8Bitdo NES30 GamePad"
                                P: Phys=b8:27:eb:19:f7:5e
                                S: Sysfs=/devices/platform/soc/3f201000.uart/tty/ttyAMA0/hci0/hci0:12/0005:2820:0009.0003/input/input2
                                U: Uniq=e4:17:d8:58:75:60
                                H: Handlers=js0 event2 
                                B: PROP=0
                                B: EV=1b
                                B: KEY=ffff0000 0 0 0 0 0 0 0 0 0
                                B: ABS=30627
                                B: MSC=10
                                
                                

                                My little contributions to the RetroPie project:

                                • Shell-Script-Boilerplate
                                • Fun-Facts-Splashscreens
                                • Limit-Last-Played-Games
                                B 2 Replies Last reply Reply Quote 0
                                • B
                                  backstander @hiulit
                                  last edited by

                                  @hiulit
                                  Do you have a Logitech K750? I think both input0 and 1 are for the keyboard?

                                  1 Reply Last reply Reply Quote 0
                                  • B
                                    backstander @hiulit
                                    last edited by backstander

                                    @hiulit
                                    I can't find anything with Vendor 04f3
                                    http://pcidatabase.com/

                                    What brand keyboard do you have? I might recommend trying a different keyboard and see if that resolves your issues.

                                    1 Reply Last reply Reply Quote 0
                                    • hiulitH
                                      hiulit
                                      last edited by hiulit

                                      @backstander I have a "Genius" keyboard, similar to this one https://www.amazon.es/Genius-31300725100-313-Teclado/dp/B018ID3V6U/ref=sr_1_7?ie=UTF8&qid=1491516948&sr=8-7&keywords=teclado+genius

                                      And why would the keyboard need two different input?
                                      Thanks!

                                      My little contributions to the RetroPie project:

                                      • Shell-Script-Boilerplate
                                      • Fun-Facts-Splashscreens
                                      • Limit-Last-Played-Games
                                      1 Reply Last reply Reply Quote 0
                                      • hiulitH
                                        hiulit
                                        last edited by hiulit

                                        @backstander Could it have something to do with this?

                                        The Raspberry Pi Model B is equipped with two USB2.0 ports. These are connected to the LAN9512 combo hub/Ethernet chip IC3, which is itself a USB device connected to the single upstream USB port on BCM2835.

                                        From Raspberry Pi's offical USB documentation.

                                        It seems like input0 is the "Raspberry Pi itself"?

                                        Take a look at this H: Handlers=sysrq kbd leds event0 . Hmmm...

                                        My little contributions to the RetroPie project:

                                        • Shell-Script-Boilerplate
                                        • Fun-Facts-Splashscreens
                                        • Limit-Last-Played-Games
                                        B 1 Reply Last reply Reply Quote 0
                                        • N
                                          Nismo
                                          last edited by

                                          In the paĆ­d version of maldita castilla ( Maldita Castilla Ex) you can set up and define controls to your liking withouth problems.

                                          hiulitH 1 Reply Last reply Reply Quote 0
                                          • hiulitH
                                            hiulit @Nismo
                                            last edited by

                                            @Nismo Does the paid version work with the Raspberry Pi?

                                            My little contributions to the RetroPie project:

                                            • Shell-Script-Boilerplate
                                            • Fun-Facts-Splashscreens
                                            • Limit-Last-Played-Games
                                            N 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.