Maldita Castilla joypad support
-
@pjft Not on my part, I haven't been successful :(
-
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 ```
-
@ExarKunIv
Does your joystick/gamepad use this IR input?If not try plugging in your joystick/gamepad into USB port 1 on your RPi
-
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?
-
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 -
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.
-
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 isinput1
. So Maldita Castilla will never work with this one :(Is there an 'easy' way (or any kind of way :P) to change
input0
forinput1
?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? -
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? :(
-
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
-
@ExarKunIv But I tried it with no keyboard, only the gamepad, and still, nothing :(
Would it be possible to changejs0
(or any other input) intoinput0
so Maldita Castilla can see it? -
-
@ExarKunIv I'm telling you this off the top of my head but I think i have:
input0
- don't know what it isinput1
- keyboardjs0
- 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 ;)
-
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
-
@hiulit
Do you have a Logitech K750? I think both input0 and 1 are for the keyboard? -
@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.
-
@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! -
@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... -
In the paĆd version of maldita castilla ( Maldita Castilla Ex) you can set up and define controls to your liking withouth problems.
-
@Nismo Does the paid version work with the Raspberry Pi?
-
It seems like
input0
is the "Raspberry Pi itself"?Hmmm..unless you have a unique configuration, I don't think that's what it is or do you have a USB hub plugged into your Pi?
Take a look at this
H: Handlers=sysrq kbd leds event0
. Hmmm...I think
kbd
= keyboard and I'm assumingleds
= LEDs?To me it seams like the keyboard is taking up both inputs for some reason. Not sure why?
@Nismo Does the paid version work with the Raspberry Pi?
I am curious about this as well :-)
If more people supported them by purchasing the paid version, I think they would be more inclined to make another game for the RPi!
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.