Controller button names for PS3 controllers

Discuss Supermodel and your favorite Model 3 games. Show off your latest threads, this is the place to see and be seen.
Forum rules
Keep it classy!

  • No ROM requests or links.
  • Do not ask to be a play tester.
  • Do not ask about release dates.
  • No drama!

Re: Controller button names for PS3 controllers

Postby nuexzz.. » Thu Oct 05, 2017 5:00 pm

I have to admit that I like the GUI for that very same time ago I made a patch for my personal use (it works with the last constructions). I leave it here https://www.sendspace.com/file/xy108f
Last edited by nuexzz.. on Thu Oct 05, 2017 5:06 pm, edited 1 time in total.
User avatar
nuexzz..
 
Posts: 287
Joined: Sun Sep 25, 2011 3:10 pm
Location: Argentina

Re: Controller button names for PS3 controllers

Postby Bart » Thu Oct 05, 2017 5:01 pm

andwan0 wrote:Thanks! I just used the command-line to recognise my joypad presses:

Code: Select all
Right Analog Joystick

               JOY1_RZAXIS_NEG
JOY1_ZAXIS_NEG                 JOY1_ZAXIS_POS
               JOY1_RZAXIS_POS




Left Analog Joystick

               JOY1_YAXIS_NEG
JOY1_XAXIS_NEG                JOY1_XAXIS_POS
               JOY1_YAXIS_POS



Direction Pad

               JOY1_POV1_UP
JOY1_POV1_LEFT              JOY1_POV1_RIGHT
               JOY1_POV1_DOWN


It's a nice program, but I prefer manually editing the text config file by hand :)
Helpful to have these common key press CONSTANTS in a nice doc page?


That's a great idea actually for the upcoming release. Can you give me a complete listing of all buttons and axes? Are PS3 controllers USB devices that work automatically with Windows or is there a converter required?
User avatar
Bart
Site Admin
 
Posts: 2182
Joined: Thu Sep 01, 2011 2:13 pm
Location: New York City

Re: Controller button names for PS3 controllers

Postby andwan0 » Fri Oct 06, 2017 1:30 am

Bart wrote:
VF3 addicted wrote:Definitely agree with Ian , I was wondering why so long without a official gui , this command line make me sick . And it prevent access for people who doesn't know how to use it . All the time i was useing Supermodel UI and was happy whith that.


What is it about these instructions that is making you ill?

Image

Emulators are an arcane and technical hobby, not a consumer product. My objective is to ultimately make Supermodel friendly and polished but I have very limited time and that time is probably better spent fixing up the emulation than working on a GUI to save people from having to type a few keystrokes. Of course there will be a GUI at some point but until then, I don't think it's so unreasonable for a hobbyist project like this to expect users to meet us half way and spend 5-10 minutes learning the command prompt until I can block off the 1-3 weeks it will take to write and iron the bugs out of a cross-platform GUI.


Short term memory loss:
First time using the command-line setting up keys, we don't know how many more to setup without having to scroll/peek using UP/DOWN arrow keys. Even then, it's a bit cryptic short descriptions - so trying to figure out which game-type the specific control is for, and whether we should use directional pad (for basic non-steering games) or joystick (for steering games). With short term memory, we have to repeatly press the view list to see what's just been configured, and what yet to configure.

Strictly ordered input:
Other GUIs allow us to pick which button to configure in our own order we like (some people like to configure the buttons first, others like the configure the right joystick first, etc); but with commandline, it enforces us to configure in the order of the commandline list.

Reading too much text (repeatly):
Pictures or a fixed graphical tabular layout helps us visualize. But with command-line, some of us are crap at internal visualization.
andwan0
 
Posts: 10
Joined: Tue Sep 26, 2017 8:06 am

Re: Controller button names for PS3 controllers

Postby Toshiko » Fri Oct 06, 2017 7:44 am

As an old person who remembers when desktop computers were sold without hard drives and the OS came on a floppy, command lines aren't the painful part. It would just be nice if Windows were as friendly to command line programs as Linux, like still being able to double-click on an executable and have a prompt be open and ready (which is the worst feature removal since Photo Viewer removed the option to see animated GIFs animate). Luckily, I still remember what a batch file is and how to write them, and it's not difficult to add shortcuts with flags to, say, Steam.

In other words, my complaint isn't with Supermodel, but with Windows. :P
Toshiko
 
Posts: 116
Joined: Fri Mar 16, 2012 10:30 am

Re: Controller button names for PS3 controllers

Postby andwan0 » Fri Oct 06, 2017 8:53 am

Bart wrote:
andwan0 wrote:Thanks! I just used the command-line to recognise my joypad presses:

Code: Select all
Right Analog Joystick

               JOY1_RZAXIS_NEG
JOY1_ZAXIS_NEG                 JOY1_ZAXIS_POS
               JOY1_RZAXIS_POS




Left Analog Joystick

               JOY1_YAXIS_NEG
JOY1_XAXIS_NEG                JOY1_XAXIS_POS
               JOY1_YAXIS_POS



Direction Pad

               JOY1_POV1_UP
JOY1_POV1_LEFT              JOY1_POV1_RIGHT
               JOY1_POV1_DOWN


It's a nice program, but I prefer manually editing the text config file by hand :)
Helpful to have these common key press CONSTANTS in a nice doc page?


That's a great idea actually for the upcoming release. Can you give me a complete listing of all buttons and axes? Are PS3 controllers USB devices that work automatically with Windows or is there a converter required?


I use Mayflash Wireless PS3 Controller to PC USB Adapter ( http://www.mayflash.com/Products/PCUSB/PS3003.html ). I believe the PS3 signals get translated into normal DInput (DirectX Input) commands (ie. normal PC gamepads). There is toggle to let me use XInput (XBOX controller inputs). The PS3 controller (and imitations) normally have 2 joysticks, 1 directional pad, and 12 button pressed (4 facing up buttons, 4 shoulder, select, start, joystick push-in x2).. so the macros start from 1 - 12 (as in the supermodel ini file)
andwan0
 
Posts: 10
Joined: Tue Sep 26, 2017 8:06 am

Re: Controller button names for PS3 controllers

Postby andwan0 » Sat Oct 07, 2017 11:34 am

Bart wrote:
That's a great idea actually for the upcoming release. Can you give me a complete listing of all buttons and axes? Are PS3 controllers USB devices that work automatically with Windows or is there a converter required?


I did this for you Bart :)

Code: Select all
~~~ DInput ~~~
NB: 4 game/joypads, use JOY1_, JOY2_, JOY3_, JOY4_ prefixes

-------------------------------------------------------------------------------
[DInput] Right Analog Joystick:

               JOY1_RZAXIS_NEG
JOY1_ZAXIS_NEG                 JOY1_ZAXIS_POS
               JOY1_RZAXIS_POS


-------------------------------------------------------------------------------
[DInput] Left Analog Joystick:

               JOY1_YAXIS_NEG
JOY1_XAXIS_NEG                JOY1_XAXIS_POS
               JOY1_YAXIS_POS


-------------------------------------------------------------------------------
[DInput] Direction Pad:

               JOY1_POV1_UP
JOY1_POV1_LEFT              JOY1_POV1_RIGHT
               JOY1_POV1_DOWN


-------------------------------------------------------------------------------
[DInput] PlayStation's Right-hand side diamond 4 buttons:

             (triangle)
(square)                  (circle)
             (cross)

             JOY1_BUTTON2
JOY1_BUTTON1              JOY1_BUTTON4
             JOY1_BUTTON3


-------------------------------------------------------------------------------
[DInput] PlayStation's shoulder buttons:

L2 (variable trigger)          R2 (variable trigger)
L1                             L2

JOY1_BUTTON7                   JOY1_BUTTON8
JOY1_BUTTON5                   JOY1_BUTTON6


-------------------------------------------------------------------------------
[DInput] PlayStation's select & start buttons:
JOY1_BUTTON11                  JOY1_BUTTON12


-------------------------------------------------------------------------------
[DInput] PlayStation's left & right joystick push-in:
JOY1_BUTTON9                   JOY1_BUTTON10











~~~ XInput ~~~

-------------------------------------------------------------------------------
[XInput] Right Analog Joystick: (NB: this is ALL different from DInput's)

               JOY1_RYAXIS_NEG
JOY1_RXAXIS_NEG                JOY1_RXAXIS_POS
               JOY1_RYAXIS_POS


-------------------------------------------------------------------------------
[XInput] Left Analog Joystick: (NB: same as DInput's)

               JOY1_YAXIS_NEG
JOY1_XAXIS_NEG                JOY1_XAXIS_POS
               JOY1_YAXIS_POS


-------------------------------------------------------------------------------
[XInput] Direction Pad: (NB: same as DInput's)

               JOY1_POV1_UP
JOY1_POV1_LEFT              JOY1_POV1_RIGHT
               JOY1_POV1_DOWN


-------------------------------------------------------------------------------
[XInput] PlayStation's Right-hand side diamond 4 buttons: (NB: this is ALL different from DInput's)

             (triangle)
(square)                  (circle)
             (cross)

             JOY1_BUTTON4
JOY1_BUTTON3              JOY1_BUTTON2
             JOY1_BUTTON1


-------------------------------------------------------------------------------
[XInput] PlayStation's shoulder buttons: (triggers are different from DInput's)

L2 (variable trigger)          R2 (variable trigger)
L1                             L2

JOY1_ZAXIS_POS                 JOY1_ZAXIS_NEG
JOY1_BUTTON5                   JOY1_BUTTON6


-------------------------------------------------------------------------------
[XInput] PlayStation's select & start buttons: (NB: this is ALL different from DInput's)
JOY1_BUTTON7                   JOY1_BUTTON8



-------------------------------------------------------------------------------
[XInput] PlayStation's left & right joystick push-in:
JOY1_BUTTON9                   JOY1_BUTTON10






Take careful note of the differences. These would help in your documentation, and maybe presets...
andwan0
 
Posts: 10
Joined: Tue Sep 26, 2017 8:06 am

Previous

Return to The Catwalk

Who is online

Users browsing this forum: Bing [Bot], Google [Bot], Stoneman and 2 guests