PS3 Controller Config

5,359 views
Skip to first unread message

Alex Chandel

unread,
Jun 8, 2010, 3:14:23 PM6/8/10
to mupen...@googlegroups.com
Hi,
I've written a mockup PS3 controller autoconfiguration to replace the existing one (the current code is completely sketched out. It's not even close to the PS3 shape). It may be worth noting that the Input Plugin reads the ps3 axis 3 very sensitively, occasionally registering C up and down button presses when there are none. This button configuration works on windows as well.

So, here is a much improved controller plugin for the PS3 Sixaxis Dualshock 3:

[Sony PLAYSTATION(R)3 Controller]
[OSX: PLAYSTATION(R)3 Controller]
plugged = True
plugin = 2
mouse = False
AnalogDeadzone = 4096,4096
AnalogPeak = 32768,32768
DPad R = button(5)
DPad L = button(7)
DPad D = button(6)
DPad U = button(4)
Start = button(3)
Z Trig = button(10)
B Button = button(13)
A Button = button(14)
C Button R = axis(2-)
C Button L = axis(2+)
C Button D = axis(3+)
C Button U = axis(3-)
R Trig = button(11)
L Trig = button(8)
Mempak switch =
Rumblepak switch =
X Axis = axis(0-,0+)
Y Axis = axis(1-,1+)
;R2 (9), L3 and R3 (1 and 2) the Triangle and Square buttons (12 and 15), Select (0), and the PS3 button (16) are unassigned.

I just copy and pasted the top 6 or so lines form the original, and the X and Y axes. The rest is different.
There is some debate on whether B should be button 13 or 15 (15 to mimic the N64 layout, 13 to appeal to ps3 users, as it's traditionally designated "B" on the ps3 (the one responsible for similar actions), and the one a psx user instinctively presses for those sort of actions). I've set it to 13 in this since the usage of a ps3 controller for this would most likely appeal to that very sort of person.
I left a comment line in that would be useful for anyone trying to customize theirs; of course, if a GUI frontend were able to dynamically assign button configurations, it would be redundant.

Draak

unread,
Jun 10, 2010, 11:12:05 AM6/10/10
to mupen64plus
cool id like to try this but where should i place this. Just paste it
into the blight_input.conf??

Richard Goedeken

unread,
Jun 17, 2010, 9:33:49 PM6/17/10
to mupen...@googlegroups.com
Draak,

blight_input.conf is gone in the newest versions of the emulator. This
configuration section goes in the InputAutoCfg.ini file, which normally lives
in /usr/local/share/mupen64plus/ on unix-type systems.

Richard

Richard Goedeken

unread,
Jun 17, 2010, 11:34:38 PM6/17/10
to mupen...@googlegroups.com
Alex,

Thanks for the info. Are you sure that you meant to reverse the direction of
the C left/right buttons? Usually right is + and left is -. The newest input
plugin actually allows you to specify deadzones for the axis() parameter, so
you can use something like "axis(3+,8192)" to make it less sensitive.

Richard

Richard Goedeken

unread,
Jun 25, 2011, 11:15:18 AM6/25/11
to aaron shaw, mupen...@googlegroups.com
Are you able to successfully run mupen64plus? Are you using the command-line
front-end? Did you install the 1.99.4-ubuntu package on the google code site?

Assuming the answer to all of these is yes, I would suggest running this from
the console:

gedit /usr/local/share/mupen64plus/InputAutoCfg.ini

The edit the [Sony PLAYSTATION(R)3 Controller] section to have the values
given in the email below.

Richard

On 06/20/2011 03:22 PM, aaron shaw wrote:
> i have ubuntu linux, and i want to use this configuration to play my games
> on, but i have no clue where to put it or how to get there. PLEASE HELP!
>
>
> On Jun 17 2010, 9:33 pm, Richard Goedeken <Rich...@fascinationsoftware.com>

09f...@gmail.com

unread,
Aug 29, 2013, 1:11:29 AM8/29/13
to mupen...@googlegroups.com, alexc...@gmail.com
Nice! I am having a problem with the PS3 controller auto config, the original one in the autoconfig.ini file worked, and so did yours. but the problem is, is that the joystick doesn't go left or right! i know it's not a hardware thing, I have tried multiple controllers. I have no idea what the problem is.

Sven Eckelmann

unread,
Aug 29, 2013, 3:13:51 AM8/29/13
to mupen...@googlegroups.com, 09f...@gmail.com, alexc...@gmail.com
On Wednesday 28 August 2013 22:11:29 09f...@gmail.com wrote:
> Nice! I am having a problem with the PS3 controller auto config, the
> original one in the autoconfig.ini file worked, and so did yours. but the
> problem is, is that the joystick doesn't go left or right! i know it's not
> a hardware thing, I have tried multiple controllers. I have no idea what
> the problem is.

Sounds like you are using a broken SDL. I think 1.2.15 had such a bug and a
patch is available at
http://bugzilla-attachments.libsdl.org/attachment.cgi?id=875

Kind regards,
Sven
signature.asc

Sven Eckelmann

unread,
Aug 29, 2013, 12:31:27 PM8/29/13
to Cody Shell, mupen...@googlegroups.com
On Thursday 29 August 2013 10:27:33 Cody Shell wrote:
> Thanks for the quick reply! My version is 1.2.15, so I guess it has the
> bug. How do I apply the patch? Thanks for all your help! I have been trying
> to fix this for weeks!
> I'm running Fedora 19.

Ask the Fedora 19 maintainer through a bugreport to apply it, wait until it
was fixed and then update your system to use the new version.

Otherwise get the developer manual of Fedora and build your own libsdl package
with the patch applied.

Kind regards,
Sven
signature.asc

mlast...@gmail.com

unread,
Nov 23, 2015, 11:39:01 PM11/23/15
to mupen64plus, alexc...@gmail.com
Just wondering if there's a way to use both axis on the ps3 controller, left for control, right for C without having to switch hitting the PS button?  Otherwise may have to use dpad for control.

Lorenzo Pane

unread,
May 5, 2016, 6:52:53 PM5/5/16
to mupen64plus, alexc...@gmail.com
It may be worth noting that the Input Plugin reads the ps3 axis 3 very sensitively, occasionally registering C up and down button presses when there are none

Thats what deadzones are for -_-

On Tuesday, June 8, 2010 at 3:14:23 PM UTC-4, Alex Chandel wrote:

Lorenzo Pane

unread,
May 5, 2016, 6:52:59 PM5/5/16
to mupen64plus, alexc...@gmail.com, mlast...@gmail.com
Absolutely.  You just need to use axis() rather than button().   and why would you need to use 16?

gordi...@gmail.com

unread,
Mar 2, 2019, 10:18:44 AM3/2/19
to mupen64plus
Hi,
The C pad isn't working. 
Reply all
Reply to author
Forward
0 new messages