RetroFE forums

General Category => General Discussion & Help => Topic started by: shaolin95 on January 13, 2017, 05:58:32 PM

Title: Please help me with non working generic Xbox 360 usb controllers
Post by: shaolin95 on January 13, 2017, 05:58:32 PM
Hello!
I have the huge full setup of RetroFE and sadly I just figured out there is no GUI for controllers :/
So I found a config file here;
http://www.retrofe.com/forum/index.php?topic=293.msg1557#msg1557

But after replacing the old one with this one, I still cannot control anything on the emulator.
Help please.
Title: Re: Please help me with non working generic Xbox 360 usb controllers
Post by: Pieter Hulshoff on January 13, 2017, 06:20:18 PM
Could you control RetroFE using the keyboard before you replaced the controls.conf file?

Sent from my SM-G920F using Tapatalk

Title: Re: Please help me with non working generic Xbox 360 usb controllers
Post by: shaolin95 on January 13, 2017, 10:32:29 PM
Could you control RetroFE using the keyboard before you replaced the controls.conf file?

Sent from my SM-G920F using Tapatalk
Yes I can move around the menu with the keyboard if I use the original controls.conf
Title: Re: Please help me with non working generic Xbox 360 usb controllers
Post by: Floyd on January 14, 2017, 07:29:49 AM
Could you control RetroFE using the keyboard before you replaced the controls.conf file?

Sent from my SM-G920F using Tapatalk
Yes I can move around the menu with the keyboard if I use the original controls.conf

If your joystick is properly recognized in windows then Try a little program called joy2key which will translate your inputs into specific keyboard inputs. Just remap them according to the letters mapped in controls.conf and you should be good to go.
Title: Re: Please help me with non working generic Xbox 360 usb controllers
Post by: ryuuji on January 14, 2017, 03:39:11 PM
or use antimicro if your OS is not Windows
Title: Re: Please help me with non working generic Xbox 360 usb controllers
Post by: shaolin95 on January 15, 2017, 11:44:09 PM
I am just going to try Launchbox now. It seems to have everything I needed already. Hopefully RetroFE will come up with an easy GUI for the controls. I am very familiar with computers (C64, Tandy coco is when I started) and even then the config thing is pretty annoying to figure out for something that should not be too hard to get a GUI for. I should have researched it more before I jumped in but I still can use the Emumovies account so no big deal. I do like how RetroFE looks so I will keep an eye on development.
Thanks
Title: Re: Please help me with non working generic Xbox 360 usb controllers
Post by: Floyd on January 16, 2017, 12:08:01 AM
Well it's sad to hear that but I can understand that people sometimes just want things to work out of the box. I don't like launchbox for many reasons, but I have to give them credit for making thins simple for the average Joe. On the other side, RetroFe could really profit from a basic settings GUI, at least for the simple things like control remap.

Hope to see you back someday mate.
Title: Re: Please help me with non working generic Xbox 360 usb controllers
Post by: Pieter Hulshoff on January 16, 2017, 07:09:17 AM
Did you try using joy2key as was suggested? I presume Windows properly detects your controller, and it can be used in other programs?

I agree that a setup gui would be nice to have, but unfortunately other things have priority at the moment. Still, a working xbox-360 controls.conf should be easier to provide. Unfortunately I don't have one, so I cannot test it either.

Sent from my SM-G920F using Tapatalk

Title: Re: Please help me with non working generic Xbox 360 usb controllers
Post by: Floyd on January 16, 2017, 09:13:45 AM
Try this Pieter
http://www.x360ce.com/
It will make your generic usb gamepad appear as a xbox360 gamepad in the game or emulator. It might help you coming up with a proper config.
Title: Re: Please help me with non working generic Xbox 360 usb controllers
Post by: Pieter Hulshoff on January 16, 2017, 10:05:32 AM
I may give that a try as soon as I can find some spare time. :) I have a PS3 controller that I could use for that purpose. I'm just surprised that the config file from the old forums didn't work, hence my questions towards the OP. I also think that joy2key should have worked, so I'm a bit at a loss here.

Implementing a gui however is a bit more work than I have time for at the moment, though if anyone wants to have a shot at it: feel free. RetroFE is F/OSS after all. :) I'll happily test and integrate it.
Title: Re: Please help me with non working generic Xbox 360 usb controllers
Post by: Floyd on January 16, 2017, 11:07:28 AM
You're doing an awesomenjob with RetroFe and the GUI would be a good thing but ironing out bugs is of course first on the list. Take your time, no hurry.
I've setup my controller to work just fine using the prpvided wiki manual (editing axes) althiugh it took me some trial and fail but got the job done. If the OP author didnt manage to get joy2key running then I dont think he has any PC gaming experience. Jo2key is extremly easy to setup.

Long story short.... Just continue to iron out bugs, new features will come along the road :)
I myself have no coding experience but I'm sure retrofe would profit from more devs.
Title: Re: Please help me with non working generic Xbox 360 usb controllers
Post by: shaolin95 on January 18, 2017, 05:06:07 AM
I did a quick check of the joy2key app but I need to sit down and figure out how each entry will fit into the control scheme of RetroFE. If it was just like push this button for botton A, B etc, would be much easier of course.
I will be keeping an eye on the development of this app though. Just that my days are not long enough for all the things I do so I needed something that works right away to relax a little with some light gaming for myself and my wife and was not counting on having to figure out how to make controls work.

In any case, I appreciate your help guys..good to see a community behind it! :)
Title: Re: Please help me with non working generic Xbox 360 usb controllers
Post by: Pieter Hulshoff on January 18, 2017, 08:17:32 AM
I can safely say that this hobby generally takes up a lot of time, no matter which front-end you choose. :) Aside from programming, a lot of my time has gone into getting art sets and matching game sets complete with a decent quality. That part should be getting easier in the not too distant future though, with people working on providing complete sets to the community. I'm still curious to find out why the controls.conf file from the old forums didn't work for you, since IMHO it should have.
Title: Re: Please help me with non working generic Xbox 360 usb controllers
Post by: JonahUK on January 18, 2017, 01:19:36 PM
I have to agree with Pieter on the time aspect, I started my cab last year and its still not how I want it (but that's just life getting in the way as well!)

If you want to get into this, you really do need to do a lot testing and trial and error as well as reading forums, wiki's etc.

Out of curiousity, are you trying a wired or wireless 360 pad?
I have an old wired one I can plug in to my Cab and see if I can get it working if that will help?
Title: Re: Please help me with non working generic Xbox 360 usb controllers
Post by: JonahUK on January 18, 2017, 08:44:20 PM
If it was just like push this button for botton A, B etc, would be much easier of course.

Try this config:

up = joy0Button0
down = joy0Button1
left = joy0Button2
right = joy0Button3
letterUp = joy0Button12
letterDown = joy0Button13
select = joy0Button10
back = joy0Button11
quit = joy0Button8

Not all buttons are mapped as my pad is a bit dodgy, lol.

dpad used for direction
a = select/enter a menu
b = cancel/back
x = letter up
y = letter down

Used this app http://www.generalarcade.com/gamepadtool/ and then figured it out from there.

Let us know if that works for you.

EDIT:
This was done on my PC and not my Cab. Both use Win 10 Home x64.
Title: Re: Please help me with non working generic Xbox 360 usb controllers
Post by: Multiplexer on January 18, 2017, 08:54:34 PM
The Xbox 360 wireless controller for windows works perfectly fine. The are the settings I use.

up = joy0Hat0Up
down = joy0Hat0Down
left = joy0Hat0Left
right = joy0Hat0Right
pageUp = PageUp
pageDown = PageDown
letterUp = joy0Button5
letterDown = joy0Button4
select = joy0Button0
back = joy0Button1

This uses the dpad for navigation
A=Select
B=Back/Exit
Shoulder buttons to skip letter
Title: Re: Please help me with non working generic Xbox 360 usb controllers
Post by: JonahUK on January 18, 2017, 08:57:31 PM
The Xbox 360 wireless controller for windows works perfectly fine. The are the settings I use.

up = joy0Hat0Up
down = joy0Hat0Down
left = joy0Hat0Left
right = joy0Hat0Right
pageUp = PageUp
pageDown = PageDown
letterUp = joy0Button5
letterDown = joy0Button4
select = joy0Button0
back = joy0Button1

This uses the dpad for navigation
A=Select
B=Back/Exit
Shoulder buttons to skip letter

Cool, now he has Wireless and Wired configs for a 360 pad :)
Title: Re: Please help me with non working generic Xbox 360 usb controllers
Post by: hundergrn07 on January 19, 2017, 07:03:23 AM
Might not help much but the Documentation from the old site seems somewhat updated and using it as reference I was able to get my PS4 controller Button Config worked out with some trail and error.

http://www.retrofe.com/wiki/index.php?title=Controls (http://www.retrofe.com/wiki/index.php?title=Controls)

Set the D-pad up first, should be able to use the joyxhat0(insert direction) and set the joyxbutton# in reference to Windows Device>GameController Setting> Properties to reference the Button Numbers, find which one exits and map from there. GL
Title: Re: Please help me with non working generic Xbox 360 usb controllers
Post by: shaolin95 on January 20, 2017, 03:13:43 PM
If it was just like push this button for botton A, B etc, would be much easier of course.

Try this config:

up = joy0Button0
down = joy0Button1
left = joy0Button2
right = joy0Button3
letterUp = joy0Button12
letterDown = joy0Button13
select = joy0Button10
back = joy0Button11
quit = joy0Button8

Not all buttons are mapped as my pad is a bit dodgy, lol.

dpad used for direction
a = select/enter a menu
b = cancel/back
x = letter up
y = letter down

Used this app http://www.generalarcade.com/gamepadtool/ and then figured it out from there.

Let us know if that works for you.

EDIT:
This was done on my PC and not my Cab. Both use Win 10 Home x64.
The Xbox 360 wireless controller for windows works perfectly fine. The are the settings I use.

up = joy0Hat0Up
down = joy0Hat0Down
left = joy0Hat0Left
right = joy0Hat0Right
pageUp = PageUp
pageDown = PageDown
letterUp = joy0Button5
letterDown = joy0Button4
select = joy0Button0
back = joy0Button1

This uses the dpad for navigation
A=Select
B=Back/Exit
Shoulder buttons to skip letter

Awesome. Mine is wired but I was thinking on getting a wireless eventually so I will give these a shot tonight.
Thanks a lot guys!
Title: Re: Please help me with non working generic Xbox 360 usb controllers
Post by: shaolin95 on January 21, 2017, 03:01:03 AM
If it was just like push this button for botton A, B etc, would be much easier of course.

Try this config:

up = joy0Button0
down = joy0Button1
left = joy0Button2
right = joy0Button3
letterUp = joy0Button12
letterDown = joy0Button13
select = joy0Button10
back = joy0Button11
quit = joy0Button8

Not all buttons are mapped as my pad is a bit dodgy, lol.

dpad used for direction
a = select/enter a menu
b = cancel/back
x = letter up
y = letter down

Used this app http://www.generalarcade.com/gamepadtool/ and then figured it out from there.

Let us know if that works for you.

EDIT:
This was done on my PC and not my Cab. Both use Win 10 Home x64.
Oh boy I really have no luck with this thing :/
So maybe I am just adding this in the wrong area.

I just copied this at the top of the config removing the original ones so it looks like this


Quote
up = joy0Button0
down = joy0Button1
left = joy0Button2
right = joy0Button3
letterUp = joy0Button12
letterDown = joy0Button13
select = joy0Button10
back = joy0Button11
quit = joy0Button8


# Define controller analogue dead zone. Default (when not configured) is 3%.
# deadZone = 3

##############################################################################
# MOUSE CODES
######################  ######################################################

and more untouched stuff below

After launching Retro FE it starts doing the intro and as the SETTLE THAT OLD SCORE starts moving towards the screen, the program just closes...no error or anything.
If I leave the original config and just add what you gave me after the keyboard config, then it loads normally but my controllers won't do anything.

So please tell me I am doing something very wrong and that it is an easy fix. :D
Title: Re: Please help me with non working generic Xbox 360 usb controllers
Post by: Pieter Hulshoff on January 21, 2017, 06:57:29 AM
Please send me the log.txt of when that happens?

Sent from my SM-G920F using Tapatalk

Title: Re: Please help me with non working generic Xbox 360 usb controllers
Post by: KMetalMind on January 21, 2017, 09:05:12 AM
It´s strange. I´ve used wired and unwired Xbox360 controllers with no problems... I´ve been getting some issues after connecting an Xbox360 and a Xbox One at the same time (I think somehow analogs from both get confused, but I haven´t tested it properly).

One important note is that if retroFE doesn´t have the focus, controllers won´t work. Sometimes when retroFE loads slower I accidentally click somewhere else on the folder, and then retroFE loads fullscreen but without focus. Alt+Enter to return the focus works perfectly in those cases, but it seems that´s not your problem  :o
Title: Re: Please help me with non working generic Xbox 360 usb controllers
Post by: JonahUK on January 21, 2017, 11:07:01 AM
So please tell me I am doing something very wrong and that it is an easy fix. :D

Use this app: http://www.generalarcade.com/gamepadtool/
It outputs the assigned buttons formatted as below:

a:b0,b:b1,back:b9,dpdown:b12,dpleft:b13,dpright:b14,dpup:b11,guide:b10,leftshoulder:b4,leftstick:b6,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b7,righttrigger:a5,rightx:a3,righty:a4,start:b8,x:b2,y:b3

You should then be able to make a config using the following:
b0 = Button0, b1=Button1 etc
dpdown=digital pad down etc

Good Luck!
Title: Re: Please help me with non working generic Xbox 360 usb controllers
Post by: Multiplexer on January 21, 2017, 11:26:56 AM
Did you say controllers? try removing all but one of them and see if RetroFE closes then. I have found that If you have an Xbox controller and any other controller plugged in at the same time RetroRE crashes every time.
Title: Re: Please help me with non working generic Xbox 360 usb controllers
Post by: Pieter Hulshoff on January 21, 2017, 12:49:06 PM
That bug should be fixed in 0.7.20b3; did you test that build already?

Sent from my SM-G920F using Tapatalk

Title: Re: Please help me with non working generic Xbox 360 usb controllers
Post by: Multiplexer on January 21, 2017, 02:39:10 PM
I have tried 0.7.20b3, The crash on shutdown when controller is connected has been fixed but there seems to be an issue when an Xbox controller and any other controller are connected RetroFE always crashes at startup. It is odd because this only happens with the Xbox controller. Multiple other controllers can be connected without a problem
Title: Re: Please help me with non working generic Xbox 360 usb controllers
Post by: Pieter Hulshoff on January 21, 2017, 03:16:18 PM
Unfortunately I don't own an xbox controller. 😢 Any chance someone can debug this issue for me?

Sent from my SM-G920F using Tapatalk

Title: Re: Please help me with non working generic Xbox 360 usb controllers
Post by: Agent47 on January 21, 2017, 04:53:39 PM
Just tested with a 360 and XBox One controller connected. Works fine, no crash. I tried to break it and the only thing I found that would crash RFE at startup is if you don't have a function mapped to something or the function is missing entirely. So I would check to make sure that you have a key set for each function and that all functions are there.
Title: Re: Please help me with non working generic Xbox 360 usb controllers
Post by: Pieter Hulshoff on January 21, 2017, 05:12:10 PM
Yeah, I'm working on that. I already removed the crashes on missing settings.conf files in the collections from 0.7.20b4.

Sent from my SM-G920F using Tapatalk

Title: Re: Please help me with non working generic Xbox 360 usb controllers
Post by: Multiplexer on January 21, 2017, 06:14:30 PM
I tried mapping all the buttons, still crashes at startup

Xbox 360 wireless controller on its own, OK
Dual shock 2 and dual Shock 4 controllers connected, OK
Xbox 360 wireless controller and either or both the dual shock controllers connected, RetroFE crashes.

I must have the 'nothing works right' check box checked somewhere
Title: Re: Please help me with non working generic Xbox 360 usb controllers
Post by: Pieter Hulshoff on January 25, 2017, 11:47:15 AM
But after replacing the old one with this one, I still cannot control anything on the emulator.

I just noticed that unless my controller is active before I start RetroFE, no inputs are registered. Is your controller activated before you start RetroFE?
Title: Re: Please help me with non working generic Xbox 360 usb controllers
Post by: PinealServo on January 25, 2017, 06:47:28 PM
I discovered recently that SDL2 has a gamepad hotplug system; I think supporting it would just be a matter of listening for the right events and calling some SDL functions in response.  Might be a good thing to add to the feature list.  All my gamepads are Xbox360 Wireless, so I can't reproduce the crashing behavior.
Title: Re: Please help me with non working generic Xbox 360 usb controllers
Post by: KMetalMind on February 04, 2017, 08:30:45 AM
I just noticed that unless my controller is active before I start RetroFE, no inputs are registered. Is your controller activated before you start RetroFE?

^ I can confirm this happens. But it happens on any application (Xbox360 controllers must be connected BEFORE launching any application to be able to use them on that one).

I discovered recently that SDL2 has a gamepad hotplug system; I think supporting it would just be a matter of listening for the right events and calling some SDL functions in response.  Might be a good thing to add to the feature list.  All my gamepads are Xbox360 Wireless, so I can't reproduce the crashing behavior.

I have a Xbox360 and a XboxOne controller wired all the times without problems... I think I had a Xbox360 wired and a Xbox360 wireless at some time too. But I don´t have others to test the crash  :-\