FAQ  •  Register  •  Login

PS4 controller on OSX 10.10.5

<<

pshenk

Posts: 3

Joined: Thu Mar 03, 2016 2:47 pm

Post Thu Mar 03, 2016 3:18 pm

PS4 controller on OSX 10.10.5

I'm having trouble with my PS4 controller on my mac. It looks like it's stuck in the right stick up position (the ship fires up all the time). Enabling key logging, and it's usually reporting "Stick 2 Up" continuously. Sometimes I can get it to not report that input (mash buttons, go in and out of options menu, click away focus and back again), but the ship is still always firing up all the time.

The controller is fine otherwise (in other games). I also tried a few different PS4 controllers to be sure.

Maybe PS4 mapping isn't integrated yet? Looking online, it seems that maybe PS4 controller was added to SDL more recently?

Thoughts?
<<

Fordcars

User avatar

Posts: 1016

Joined: Fri Apr 20, 2012 3:51 pm

Location: Some city, somewhere

Post Thu Mar 03, 2016 11:19 pm

Re: PS4 controller on OSX 10.10.5

Hi! Check out joystick_presets.ini found in ~/Library/Application Support/Bitfighter I believe. In there, you can see PS2 and PS3 controllers, but not PS4! You can add yours there.

Check out the instructions at the top of that file. If you need any help, people are always willing to help out (and if you're lucky, you might catch a dev!)

This might be useful.
skybax: Why is this health pack following me?
bobdaduck: uh, it likes you.
<<

pshenk

Posts: 3

Joined: Thu Mar 03, 2016 2:47 pm

Post Mon Mar 07, 2016 10:43 am

Re: PS4 controller on OSX 10.10.5

Thanks! Is there a trick to getting the diagnostics screen working?
You can see the axis number on the Bitfighter
; diagnostics screen (press F7) when you move the sticks.

Or is this disabled in the latest build?
<<

pshenk

Posts: 3

Joined: Thu Mar 03, 2016 2:47 pm

Post Mon Mar 07, 2016 12:10 pm

Re: PS4 controller on OSX 10.10.5

Nevermind, I got it working. Here's what I ended up with ("Wireless Controller" is how it showed up for me on my Mac):

[PS4]
;
Name=PS4 Controller
SearchString=Wireless Controller
SearchStringIsSubstring=Yes
MoveAxisLeftRight=0
MoveAxisUpDown=1
ShootAxisLeftRight=2
ShootAxisUpDown=5
Button1=Raw:1;Label:PSCROSS;Color:White;Shape:Round
Button2=Raw:2;Label:PSCIRCLE;Color:White;Shape:Round
Button3=Raw:0;Label:PSSQUARE;Color:White;Shape:Round
Button4=Raw:3;Label:PSTRIANGLE;Color:White;Shape:Round
Button5=Raw:6;Label:L2;Color:White;Shape:Rect
Button6=Raw:7;Label:R2;Color:White;Shape:Rect
Button7=Raw:4;Label:L1;Color:White;Shape:Rect
Button8=Raw:5;Label:R1;Color:White;Shape:Rect
Button9=Raw:10;Label:L3;Color:White;Shape:Round
Button10=Raw:11;Label:R3;Color:White;Shape:Round
Button11=Raw:12;Label:PS;Color:White;Shape:Round
Button12=Raw:13;Label:Pad;Color:White;Shape:Rect
ButtonStart=Raw:9;Label:Opt;Color:White;Shape:Rect
ButtonBack=Raw:8;Label:Share;Color:White;Shape:Rect
ButtonDPadUp=
ButtonDPadDown=
ButtonDPadLeft=
ButtonDPadRight=
<<

Fordcars

User avatar

Posts: 1016

Joined: Fri Apr 20, 2012 3:51 pm

Location: Some city, somewhere

Post Mon Mar 07, 2016 6:35 pm

Re: PS4 controller on OSX 10.10.5

Nice! Maybe this joystick preset should be bundle with the game?
skybax: Why is this health pack following me?
bobdaduck: uh, it likes you.
<<

watusimoto

Site Admin

Posts: 1558

Joined: Tue Feb 23, 2010 7:07 pm

Location: Quartz's mom's house

Post Wed Mar 09, 2016 6:15 pm

Re: PS4 controller on OSX 10.10.5

Actually... in 020, if we ever get there, we're moving to using SDL's joystick configuration system. This is good because it is continuously updated, so we'll get access to a larger universe of joysticks than would otherwise be possible.

Raptor has already done the coding to make this work.
<<

raptor

Posts: 1046

Joined: Mon Oct 11, 2010 9:03 pm

Post Wed Mar 09, 2016 6:48 pm

Re: PS4 controller on OSX 10.10.5

watusimoto wrote:Raptor has already done the coding to make this work.

And PS4 is included!
<<

amgine

Posts: 1399

Joined: Thu Apr 19, 2012 2:57 pm

Post Sat Mar 12, 2016 11:36 pm

Re: PS4 controller on OSX 10.10.5

Nice will this work with my old outdated gravis destoryer joystick?
Bitfighter Forever.
<<

raptor

Posts: 1046

Joined: Mon Oct 11, 2010 9:03 pm

Post Sun Mar 13, 2016 7:31 pm

Re: PS4 controller on OSX 10.10.5

You can follow the directions here to get me the joystick settings:

viewtopic.php?f=28&t=2724

And it we can make sure it's supported.

Return to Technical Support

Who is online

Users browsing this forum: No registered users and 7 guests

cron