Author Topic: RetroFe crashes if DS4 is connected to the computer  (Read 12645 times)

Multiplexer

  • Newbie
  • *
  • Posts: 29
  • Karma: +0/-0
    • View Profile
Re: RetroFe crashes if DS4 is connected to the computer
« Reply #15 on: February 11, 2017, 01:41:10 AM »
I have been doing a bit of playing around with the DS4 controller. I have been using it via the official PS USB wireless adaptor for some time and RetroFE seems to work fine other than randomly doing the spinning thing when skipping letter. I have tried it using DS4Windows v1.4.52 and if 'Hide DS4 Controller' isn't checked under settings tab of DS4Windows then RetroFE crashes at start up. If 'Hide DS4 Controller' is checked then RetroFE seems to work OK. Just to add, I am running Windows 10 Pro x64.
« Last Edit: February 11, 2017, 01:44:14 AM by Multiplexer »

cassette

  • Full Member
  • ***
  • Posts: 170
  • Karma: +1/-0
    • View Profile
Re: RetroFe crashes if DS4 is connected to the computer
« Reply #16 on: February 11, 2017, 01:54:29 AM »
Thanks for sharing. Adding to mine, I'm using Windows 8 (not 8.1), my laptop's bluetooth, DS4Windows 1.4.52, and 'Hide DS4 Controller' is checked.

My RetroFE settings are:

Code: [Select]
collectionInputClear=true
fullscreen = yes
horizontal = stretch
vertical = stretch
layout = RAW
hideMouse = yes
showParenthesis = yes
showSquareBrackets = yes
firstCollection = Main
autoFavorites = false
videoEnable = yes
videoLoop = 0
exitOnFirstPageBack = no
attractModeTime= 0
rememberMenu = yes
baseMediaPath=M:/Media/Games/Metadata
baseItemPath=M:/Media/Games/Platform

and the control config is

Code: [Select]
up = Up,joy0Hat0Up,joyXAxis1-
down = Down,joy0Hat0Down,joyXAxis1+
left = Left,joy0Hat0Left,joyXAxis0-
right = Right,joy0Hat0Right,joyXAxis0+
pageUp = A,joy0Button4
pageDown = S,joy0Button5
letterUp = W,joy0Button7
letterDown = Q,joy0Button6
prevPlaylist = N,joyYAxis0-
nextPlaylist = M,joyYAxis0+
addPlaylist = J,joy0Button9
removePlaylist = K,joy0Button8
favPlaylist =
random = R
select = X,mouseButtonleft,joy0Button0,joy0Button1,joy0Button2
back = Z,mouseButtonRight,joy0Button3
quit = F4,joy0Button12
deadZone = 50

Multiplexer

  • Newbie
  • *
  • Posts: 29
  • Karma: +0/-0
    • View Profile
Re: RetroFe crashes if DS4 is connected to the computer
« Reply #17 on: February 11, 2017, 02:08:06 AM »
Hi firewater,
One thing I have noticed with your config file is that you are using joyXAxis when it maybe should be joy0Axis for the up, down, left, right
and also:-

prevPlaylist = N,joyYAxis0-
nextPlaylist = M,joyYAxis0+

maybe should be:-

prevPlaylist = N,joy0Axis0-
nextPlaylist = M,joy0Axis0+

But then it appears you have used Axis0 +/- twice
« Last Edit: February 11, 2017, 02:41:13 AM by Multiplexer »

cassette

  • Full Member
  • ***
  • Posts: 170
  • Karma: +1/-0
    • View Profile
Re: RetroFe crashes if DS4 is connected to the computer
« Reply #18 on: February 11, 2017, 02:39:15 AM »
Sadly, that wasn't it, but thanks for the suggestion.

Code: [Select]
up = Up,joy0Hat0Up,joy0XAxis1-
down = Down,joy0Hat0Down,joy0XAxis1+
left = Left,joy0Hat0Left,joy0XAxis0-
right = Right,joy0Hat0Right,joy0XAxis0+
pageUp = A,joy0Button4
pageDown = S,joy0Button5
letterUp = W,joy0Button7
letterDown = Q,joy0Button6
prevPlaylist = N,joy0YAxis0-
nextPlaylist = M,joy0YAxis0+
addPlaylist = J,joy0Button9
removePlaylist = K,joy0Button8
favPlaylist =
random = R
select = X,mouseButtonleft,joy0Button0,joy0Button1,joy0Button2
back = Z,mouseButtonRight,joy0Button3
quit = F4,joy0Button12
deadZone = 50

edit: wait, I think you're onto something. Testing...
edit2: ok, this might have fixed it forever, or it may just be again the randomness of this, but it's working with DS4Windows now!!! What I had to do was remove the analog inputs and have it as follows:

Code: [Select]
up = Up,joy0Hat0Up
down = Down,joy0Hat0Down
left = Left,joy0Hat0Left
right = Right,joy0Hat0Right
pageUp = A,joy0Button4
pageDown = S,joy0Button5
letterUp = W,joy0Button7
letterDown = Q,joy0Button6
prevPlaylist = N
nextPlaylist = M
addPlaylist = J,joy0Button9
removePlaylist = K,joy0Button8
favPlaylist =
random = R
select = X,mouseButtonleft,joy0Button0,joy0Button1,joy0Button2
back = Z,mouseButtonRight,joy0Button3
quit = F4,joy0Button12
deadZone = 50

The joystick letter up/down inputs aren't working, but everything else seems to be working nicely and I've disconnected/reconnected a couple of times now!

So what happens is that if I put certain inputs, the joystick doesn't work at all. For example I trieed adding ,joy0Button7,joy0Button8,joy0Button9,joy0Button10 to letter up and that happened. Same if I try to add the analog.

Hope it stays this way (hopefully finding a way to make up/down buttons work though)!
« Last Edit: February 11, 2017, 02:56:58 AM by firewater »

Multiplexer

  • Newbie
  • *
  • Posts: 29
  • Karma: +0/-0
    • View Profile
Re: RetroFe crashes if DS4 is connected to the computer
« Reply #19 on: February 11, 2017, 02:54:39 AM »
Hi firewater,
looking at your last post you still seem to have joy0Axis0- and joy0Axis0+ used twice
« Last Edit: February 11, 2017, 02:56:25 AM by Multiplexer »

Multiplexer

  • Newbie
  • *
  • Posts: 29
  • Karma: +0/-0
    • View Profile
Re: RetroFe crashes if DS4 is connected to the computer
« Reply #20 on: February 11, 2017, 03:09:10 AM »
See if this works as a basic setup, seems to work fine for me

up = joy0Hat0Up
down = joy0Hat0Down
left = joy0Hat0Left
right = joy0Hat0Right
pageUp = A
pageDown = B
letterUp = joy0Button5
letterDown = joy0Button4
nextPlaylist = P
addPlaylist = I
removePlaylist = O
random = R
select = joy0Button0
back = joy0Button2
quit = Q

That should be D-Pad for left/right/updown,  X=select, Square=back, Left/Right shoulder for skip letter
« Last Edit: February 11, 2017, 03:13:34 AM by Multiplexer »

cassette

  • Full Member
  • ***
  • Posts: 170
  • Karma: +1/-0
    • View Profile
Re: RetroFe crashes if DS4 is connected to the computer
« Reply #21 on: February 11, 2017, 04:05:06 AM »
Alright thanks. So this is the furthest I've gotten with every key listed here working:

Code: [Select]
up = Up,joy0Hat0Up,joyXAxis1-
down = Down,joy0Hat0Down,joyXAxis1+
left = Left,joy0Hat0Left
right = Right,joy0Hat0Right
pageUp = A,joy0Button4
pageDown = S,joy0Button5
letterUp = W
letterDown = Q
prevPlaylist = N
nextPlaylist = M
addPlaylist = J,joy0Button6
removePlaylist = K,joy0Button5
favPlaylist =
random = R
select = X,mouseButtonleft,joy0Button0,joy0Button1,joy0Button2
back = Z,mouseButtonRight,joy0Button3
quit = F4
deadZone = 50

In case anyone wants to use it, this is what it does:

Dpad = Move (up,down,left,right)
Left Stick = Move (up,down)
R1/L1 = Page up/down
Share = Remove from playlist
Options = Add to playlist
x ■● = Select
▲ = Back

Things I couldn't get to work:

- R2/L2 = Letter Up / Down. Reason: I couldn't find the buttons for R2/L2. Without DS4Windows it's joy0Button6 and joy-Button7, but with it they're detected as Share and Options.
- Left Stick = Move (left, right). Reason: adding joy0XAxis0- and joy0XAxis0+ makes everything stop working.
- Right Stick = Previous / Next Playlist. Reason: joyXAxis3- and ,joyXAxis3+ means moving the right stick left/right. It works if I put it on left = and right = but not if on prevPlaylist and nextPlaylist.
- PS Button = Exit. Reason: I couldn't find the button for it. Withoout DS4Windows it's joy0Button12, but not anymore. I tried all buttons up to joy0Button20, so I gave up.

Regardless, this is pretty, pretty good considering my chances just hours ago. Thanks to all of you of bearing with me, and I hope this finally stays this way!
« Last Edit: February 11, 2017, 04:06:56 AM by firewater »

Multiplexer

  • Newbie
  • *
  • Posts: 29
  • Karma: +0/-0
    • View Profile
Re: RetroFe crashes if DS4 is connected to the computer
« Reply #22 on: February 11, 2017, 03:08:55 PM »
Quote
- R2/L2 = Letter Up / Down. Reason: I couldn't find the buttons for R2/L2. Without DS4Windows it's joy0Button6 and joy-Button7, but with it they're detected as Share and Options.

This is joy0Axis2- and joy0Axis2+ but Axis2- doesn't play nice. You have to hold the button down to stop it continuously scrolling. Tried changing dead zone without any luck


Quote
- Left Stick = Move (left, right). Reason: adding joy0XAxis0- and joy0XAxis0+ makes everything stop working.

I think this should be joy0Axis0- and not joy0XAxis0- also joy0Axis0+ and not joy0XAxis0+


Quote
- PS Button = Exit. Reason: I couldn't find the button for it. Withoout DS4Windows it's joy0Button12, but not anymore. I tried all buttons up to joy0Button20, so I gave up.

I don't think the PS button works anymore because it is now emulating the Xbox button. In windows 10 it activates the gamebar



cassette

  • Full Member
  • ***
  • Posts: 170
  • Karma: +1/-0
    • View Profile
Re: RetroFe crashes if DS4 is connected to the computer
« Reply #23 on: February 14, 2017, 02:10:54 AM »
Thank you! All that you mention is right. R2 has the same problem here, but this is pretty close to my ideal setup for now.

cassette

  • Full Member
  • ***
  • Posts: 170
  • Karma: +1/-0
    • View Profile
Re: RetroFe crashes if DS4 is connected to the computer
« Reply #24 on: June 05, 2017, 11:17:14 PM »
Bumping this because the problem keeps occurring constantly: open RetroFE and the controller is not detected. I don't think I changed anything other than maybe the .exe... I mean I've definitely updated the RetroFE build by changing the .exe since then, just that I'm not sure it's that what caused the problem. "Hide DS controller" is ticked.

Code: [Select]
up = Up,joy0Hat0Up,joyXAxis1-
down = Down,joy0Hat0Down,joyXAxis1+
left = Left,joy0Hat0Left,joy0Axis0-
right = Right,joy0Hat0Right,joy0Axis0+
pageUp = A,joy0Button4
pageDown = S,joy0Button5
letterUp = W
letterDown = Q,joy0Axis2+
prevPlaylist = N
nextPlaylist = F,joy0XAxis3+
addPlaylist = M,joy0Button7
removePlaylist = N,joy0Button6
favPlaylist =
random = R
select = Return,mouseButtonleft,joy0Button0,joy0Button1,joy0Button2
back = Escape,mouseButtonRight,joy0Button3
quit = F4
deadZone = 50
« Last Edit: June 08, 2017, 08:30:58 AM by firewater »

Pieter Hulshoff

  • Administrator
  • Hero Member
  • *****
  • Posts: 1534
  • Karma: +46/-14
    • View Profile
    • Towel 42
Re: RetroFe crashes if DS4 is connected to the computer
« Reply #25 on: June 06, 2017, 06:41:27 AM »
I don't think I changed anything in this code for quite some time. I should probably invest in some controllers in the future, because I'm working blind here.

Sent from my SM-G920F using Tapatalk


cassette

  • Full Member
  • ***
  • Posts: 170
  • Karma: +1/-0
    • View Profile
Re: RetroFe crashes if DS4 is connected to the computer
« Reply #26 on: June 08, 2017, 08:29:14 AM »
Yeah I don't think it's that. I honestly can't remember at what point it started to stop working occasionally again so it's hard to tell you. I just tried opening-closing RetroFE 3 times and on all 3 occasions the controller worked lol same config listed above and all. I really don't know... let's hope it stays this way, and I have a feeling it will! (mostly cause I've reinstalled Windows and I just got RetroArch working again after installing the proper video drivers so I'm on a stuff-works-as-intended-strike).