Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dragonrise USB encoders not working properly #114

Closed
thewarroom opened this issue May 30, 2017 · 21 comments

Comments

Projects
None yet
5 participants
@thewarroom
Copy link

commented May 30, 2017

Hi Guys,
running amiberry on a pi3b, retropie 4.2
usb encoders are detected however the up-down directions on the joystick won't work, left-right and buttons work fine. Any advice appreciated.
Also exactly the same issue on UAE4ARM

@thewarroom

This comment has been minimized.

Copy link
Author

commented Jun 2, 2017

is there a different type of usb encoder i can use if this issue cannot be solved?

@thewarroom

This comment has been minimized.

Copy link
Author

commented Jun 2, 2017

i believe the dragonrise encoder is very popular with cabinet builds?

@midwan

This comment has been minimized.

Copy link
Owner

commented Aug 8, 2017

@thewarroom
Hi there, thanks for the feedback.
I've been away for a while due to some personal issues, but I'm slowly getting back into the project.

I'm entirely sure what that USB encoder you mention is supposed to be doing? Could you give me a little documentation on it, so I can dig through it perhaps?

@midwan midwan self-assigned this Aug 8, 2017

@midwan midwan added the question label Aug 8, 2017

@midwan

This comment has been minimized.

Copy link
Owner

commented Sep 9, 2017

@thewarroom Ping!

@midwan midwan added the enhancement label Oct 7, 2017

@midwan

This comment has been minimized.

Copy link
Owner

commented Oct 7, 2017

@thewarroom I'm assuming that Dragonrise is seen as keyboard input in the system?
If so, this should be possible to use with the upcoming improvements in the controller section.

@midwan midwan removed the question label Oct 7, 2017

@HoraceAndTheSpider

This comment has been minimized.

Copy link
Collaborator

commented Oct 7, 2017

Dragon rise controllers work as a joystick.

Fixed with new control system :)

My arcade sticks appear as dragon rise so I have tested this and it is verified by users on the Facebook group

@midwan

This comment has been minimized.

Copy link
Owner

commented Oct 7, 2017

@HoraceAndTheSpider Thanks for confirming! :)

@WulfmanGer

This comment has been minimized.

Copy link

commented Nov 20, 2017

Hey,

I use an dragonrise usb encoder with recalbox and amiberry 2.1 (RPi3). Left/Right-Movement works, Button0 works (Button1 i don't know), but Up/Down doesn't work.

I've tested the amiberry 2.5beta-binary - but i can't join the config-menu (my Hotkey = F11) => back zu Emulationstation / Crash.

Dragonrise works in Emulationstations, SNES-Emulation - but Amiga ... no chance :|

Any ideas?

thx
Wulfman

PS: works fine @ windows ....

@HoraceAndTheSpider

This comment has been minimized.

Copy link
Collaborator

commented Nov 20, 2017

I am sure this will work following the controller branch merge, but for now, could you please post a copy of your controller .cfg file from RetroArch/EmulationStation and I hope I may be able to diagnose the cause.

Thanks

@WulfmanGer

This comment has been minimized.

Copy link

commented Nov 20, 2017

I've configured @ ES:
dpad up/down/left/right and A/B for the "firebuttons"

<inputConfig type="joystick" deviceName="DragonRise Inc. Generic USB Joystick " deviceGUID="03000000790000000600000010010000"> <input name="a" type="button" id="0" value="1" code="288" /> <input name="b" type="button" id="1" value="1" code="289" /> <input name="down" type="axis" id="3" value="1" code="3" /> <input name="left" type="axis" id="0" value="-1" code="0" /> <input name="right" type="axis" id="0" value="1" code="0" /> <input name="up" type="axis" id="3" value="-1" code="3" /> </inputConfig>

no RetroArch-Config.

I use this implementation from amibery into recalbox: https://github.com/Voljega/amiga4recalbox ...

@HoraceAndTheSpider

This comment has been minimized.

Copy link
Collaborator

commented Nov 20, 2017

Ok. For the new version you will need to create a retroarch control Config file, and this will automatically map your controller for universal use.

I can see for your above layout, your left/right are on axis 0 and you up/down are on axis 3

This won’t work in the older versions of Amiberry, because it is hard coded for axis 0/1, which explains the problem you are having.

You’ll be able fix this in the new version , as this picks up aany numbered axis for x/y separately :)

@HoraceAndTheSpider

This comment has been minimized.

Copy link
Collaborator

commented Nov 20, 2017

Just to clarify, to make this work you will only need one text file cfg and all will be sorted in the next version :)

@HoraceAndTheSpider

This comment has been minimized.

Copy link
Collaborator

commented Nov 20, 2017

Also the crash you are experiencing is likely due to a missing icon file, mentioned in another thread here on GitHub

@WulfmanGer

This comment has been minimized.

Copy link

commented Nov 20, 2017

I think RetroArch is a "problem" - or i don't understand your "solution". The Amiberry-Integration in Recalbox is not official - it don't use RetroArch (retropie does this?!). I've started amiberry directly from ES - not over RetroArch :|

@WulfmanGer

This comment has been minimized.

Copy link

commented Nov 20, 2017

ok i forgot the controller.png ;) GUI works now ... but no selectable joystick (dragon), gamepad (ps3). I need the config-file? How can i create this?

@HoraceAndTheSpider

This comment has been minimized.

Copy link
Collaborator

commented Nov 20, 2017

Amiberry will not require you to use RetroArch itself, so the fact you are using RecallBox will not matter. However the new version will use RetroArch "conventions" for recognition of controller layouts.

This means that just liks selecting the 'roms' path in the Amiberry Panel, there will now be a 'Controllers' Path also which can be scanned. This can use a default (from say, RetroPie) but for you, you will be ble to use a path you prefer (probably the default: amiberry/conf/controllers/)

In order to detect the unique layout of your controller/USB device it will search for a text file called DragonRise Inc. Generic USB Joystick .cfg

This file, will need to contain all of the information required to map your controller within Amiberry. We use the RetroArch 'style' for this for a more universal recognition. Therefore following these conventions here: https://github.com/RetroPie/RetroPie-Setup/wiki/RetroArch-Configuration

The following would work for your device, based on what you have told me above. (at a guess) but if you have other buttons you have not previously mapped, you could add those also.

input_device = "DragonRise Inc. Generic USB Joystick "
input_driver = "udev"
input_a_btn = "0"
input_b_btn = "1"
input_down_axis = "+3"
input_up_axis = "-3"
input_left_axis = "-0"
input_right_axis = "+0"
input_x_btn = "-1"
input_y_btn = "-1"
input_select_btn = "-1"
input_start_btn = "-1"
input_l_btn = "-1"
input_r_btn = "-1"
input_enable_hotkey_btn = "-1"
input_exit_emulator_btn = "-1"
input_menu_toggle_btn = "-1"
input_reset_btn = "-1"

Hope this helps to explain.

@WulfmanGer

This comment has been minimized.

Copy link

commented Nov 20, 2017

yes - i think i understand ...

with "new version" do you means not 2.5beta (from binary - zip)? I see a screenshot from Amiberry/RetroPie -> looks completly different to "my" 2.5beta .. mhhh


I need a retroArch-Style-Inputconfig. Path to the "DragonRise Inc. Generic USB Joystick .cfg" (Spaces): /recalbox/share/emulateurs/amiga/uae4arm/conf (or ... controllers/)... voljegas Script set an ramdisk and copy all files into this. I see in putty: .cfg is in this directory.

In the Menu: "Path" -> Configurationfiles - path is correct (to the ram-drive - but .cfg is there!)

=> no Joystick under "Input" - and no function ingame

I see in evtest the name is "DragonRise Inc. Generic USB Joystick " (more spaces) ... i change name of config-file and "input_device"
=> no

I've added Vendor/Product (https://github.com/libretro/retroarch-joypad-autoconfig/blob/master/udev/DragonRise_Inc.___Generic___USB__Joystick__.cfg)
input_vendor_id = 121
input_product_id = 6
=> no

Mhhhh ...

I've saved the config and see:
input.1.joystick.0.friendlyname=Kb Arrows as Joystick
input.1.joystick.0.name=JOY0
input.1.joystick.0.empty=true
input.1.joystick.1.friendlyname=DragonRise Inc. Generic USB Joystick
input.1.joystick.1.name=JOY1
input.1.joystick.1.empty=true
same on input.2, 3

My PS3-Gamepad works without .cfg - directly ...

@HoraceAndTheSpider

This comment has been minimized.

Copy link
Collaborator

commented Nov 20, 2017

The function won’t work in v2.5

You will either need to use the”controller” branch/fork or wait for the branch to be merged... (this is planned soon)

@WulfmanGer

This comment has been minimized.

Copy link

commented Nov 20, 2017

ohhh ... ok i think we are talk about this 2.5beta - SORRY for this misunderstanding.

I've found an binary from you (@ ultimateamiga) -> IT WORKS! ;) Thanks for your help!!

@Voljega

This comment has been minimized.

Copy link

commented Nov 22, 2017

Don't worry @WulfmanGer I will update my solution as soon as 2.5 final is released ;)
For now in 2.1 the right part in your generated uae for your controller is that one :

joyport1=joy0
joyport1autofire=normal
joyport1mode=djoy
joyportname1=JOY1

Some 0/1 should be different in there from what I post there.

The whole part you posted is totally useless and unused by amiberry

@HoraceAndTheSpider

This comment has been minimized.

Copy link
Collaborator

commented Dec 30, 2017

Since the controller branch has now been merged into the dev branch, I’m closing this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.