LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Games
User Name
Password
Linux - Games This forum is for all discussion relating to gaming in Linux.

Notices


Reply
  Search this Thread
Old 07-24-2017, 02:47 PM   #1
lmarvelly
LQ Newbie
 
Registered: Jul 2017
Posts: 2

Rep: Reputation: Disabled
Mednafen Playstation Controls


I've recently install Mednafen and I can get games to load fine but I can't get the button configuration to come up. ALT + SHIFT + [n] doesn't seem to work.

I've been told you can edit the controls in the mednafen-09x.cfg file but I've looked in the file and there is a lot of different controller setting and I can't find the playstation controller settings.

Please help (:
 
Old 07-26-2017, 09:59 PM   #2
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware
Posts: 7,948
Blog Entries: 12

Rep: Reputation: Disabled
Hi:

I'm not sure w/o seeing the configuration file what you would choose or uncomment.

I've never configured a PS controller before sorry. However here's some links that could help.

https://mednafen.github.io/documentation/

http://emulation.gametechwiki.com/index.php/Mednafen
https://appuals.com/set-custom-comma...tion-mednafen/


IF Alt+Shift+1 isn't allow you to set the controls maybe go to the config file look for the argument "psx.input.port1"and change gamepad to DualShock.
IF that doesn't help change it back to what it was.
http://emulation-general.wikia.com/wiki/Mednafen

If you can post the output of the config file we can take a look at it and maybe make some sense of it.
I will at least try to in the effort to help you.

-::-Look in the PS Forum.-::-
There might be a few Linux users that say how they set up the controls.
 
Old 08-01-2017, 03:56 PM   #3
lmarvelly
LQ Newbie
 
Registered: Jul 2017
Posts: 2

Original Poster
Rep: Reputation: Disabled
Thanks for the links unfortunately I've been through them all already. For some reason the default keyboard input doesn't work (maybe the keyboard keycodes don't match up with my UK keyboard).

When you say change gamepad to DualShock do you mean in the lines of code looking like this:
;psx, Virtual Port 1, Digital Gamepad: ○ (right)
psx.input.port1.gamepad.circle keyboard 100

to

;psx, Virtual Port 1, Digital DualShock: ○ (right)
psx.input.port1.dualshock.circle keyboard 100




There seems to be settings for both the gamepad and the DualShock. These are the settings I found:

;psx, Virtual Port 1, DualShock: Analog(mode toggle)
psx.input.port1.dualshock.analog

;Analog axis scale coefficient for DualShock on Virtual Port 1.
psx.input.port1.dualshock.axis_scale 1.00

;psx, Virtual Port 1, DualShock: ○ (right)
psx.input.port1.dualshock.circle

;psx, Virtual Port 1, DualShock: x (lower)
psx.input.port1.dualshock.cross

;psx, Virtual Port 1, DualShock: D-Pad DOWN ↓
psx.input.port1.dualshock.down

;psx, Virtual Port 1, DualShock: L1 (front left shoulder)
psx.input.port1.dualshock.l1

;psx, Virtual Port 1, DualShock: L2 (rear left shoulder)
psx.input.port1.dualshock.l2

;psx, Virtual Port 1, DualShock: Left Stick, Button(L3)
psx.input.port1.dualshock.l3

;psx, Virtual Port 1, DualShock: D-Pad LEFT ←
psx.input.port1.dualshock.left

;psx, Virtual Port 1, DualShock: Left Stick DOWN ↓
psx.input.port1.dualshock.lstick_down

;psx, Virtual Port 1, DualShock: Left Stick LEFT ←
psx.input.port1.dualshock.lstick_left

;psx, Virtual Port 1, DualShock: Left Stick RIGHT →
psx.input.port1.dualshock.lstick_right

;psx, Virtual Port 1, DualShock: Left Stick UP ↑
psx.input.port1.dualshock.lstick_up

;psx, Virtual Port 1, DualShock: R1 (front right shoulder)
psx.input.port1.dualshock.r1

;psx, Virtual Port 1, DualShock: R2 (rear right shoulder)
psx.input.port1.dualshock.r2

;psx, Virtual Port 1, DualShock: Right stick, Button(R3)
psx.input.port1.dualshock.r3

;psx, Virtual Port 1, DualShock: Rapid ○ (right)
psx.input.port1.dualshock.rapid_circle keyboard 100

;psx, Virtual Port 1, DualShock: Rapid x (lower)
psx.input.port1.dualshock.rapid_cross keyboard 120

;psx, Virtual Port 1, DualShock: Rapid □ (left)
psx.input.port1.dualshock.rapid_square keyboard 97

;psx, Virtual Port 1, DualShock: Rapid △ (upper)
psx.input.port1.dualshock.rapid_triangle keyboard 119

;psx, Virtual Port 1, DualShock: D-Pad RIGHT →
psx.input.port1.dualshock.right

;psx, Virtual Port 1, DualShock: Right Stick DOWN ↓
psx.input.port1.dualshock.rstick_down

;psx, Virtual Port 1, DualShock: Right Stick LEFT ←
psx.input.port1.dualshock.rstick_left

;psx, Virtual Port 1, DualShock: Right Stick RIGHT →
psx.input.port1.dualshock.rstick_right

;psx, Virtual Port 1, DualShock: Right Stick UP ↑
psx.input.port1.dualshock.rstick_up

;psx, Virtual Port 1, DualShock: SELECT
psx.input.port1.dualshock.select

;psx, Virtual Port 1, DualShock: □ (left)
psx.input.port1.dualshock.square

;psx, Virtual Port 1, DualShock: START
psx.input.port1.dualshock.start

;psx, Virtual Port 1, DualShock: △ (upper)
psx.input.port1.dualshock.triangle

;psx, Virtual Port 1, DualShock: D-Pad UP ↑
psx.input.port1.dualshock.up


;psx, Virtual Port 1, Digital Gamepad: ○ (right)
psx.input.port1.gamepad.circle keyboard 100

;psx, Virtual Port 1, Digital Gamepad: x (lower)
psx.input.port1.gamepad.cross keyboard 120

;psx, Virtual Port 1, Digital Gamepad: DOWN ↓
psx.input.port1.gamepad.down keyboard 274

;psx, Virtual Port 1, Digital Gamepad: L1 (front left shoulder)
psx.input.port1.gamepad.l1 keyboard 257

;psx, Virtual Port 1, Digital Gamepad: L2 (rear left shoulder)
psx.input.port1.gamepad.l2 keyboard 263

;psx, Virtual Port 1, Digital Gamepad: LEFT ←
psx.input.port1.gamepad.left keyboard 276

;psx, Virtual Port 1, Digital Gamepad: R1 (front right shoulder)
psx.input.port1.gamepad.r1 keyboard 259

;psx, Virtual Port 1, Digital Gamepad: R2 (rear right shoulder)
psx.input.port1.gamepad.r2 keyboard 265

;psx, Virtual Port 1, Digital Gamepad: Rapid ○ (right)
psx.input.port1.gamepad.rapid_circle

;psx, Virtual Port 1, Digital Gamepad: Rapid x (lower)
psx.input.port1.gamepad.rapid_cross

;psx, Virtual Port 1, Digital Gamepad: Rapid □ (left)
psx.input.port1.gamepad.rapid_square

;psx, Virtual Port 1, Digital Gamepad: Rapid △ (upper)
psx.input.port1.gamepad.rapid_triangle

;psx, Virtual Port 1, Digital Gamepad: RIGHT →
psx.input.port1.gamepad.right keyboard 275

;psx, Virtual Port 1, Digital Gamepad: SELECT
psx.input.port1.gamepad.select keyboard 32

;psx, Virtual Port 1, Digital Gamepad: □ (left)
psx.input.port1.gamepad.square keyboard 97

;psx, Virtual Port 1, Digital Gamepad: START
psx.input.port1.gamepad.start keyboard 13

;psx, Virtual Port 1, Digital Gamepad: △ (upper)
psx.input.port1.gamepad.triangle keyboard 119

;psx, Virtual Port 1, Digital Gamepad: UP ↑
psx.input.port1.gamepad.up keyboard 273



I replaced gamepad with DualShock (see below )but it still doesn't work.

;psx, Virtual Port 1, DualShock: ○ (right)
psx.input.port1.dualshock.circle keyboard 100

;psx, Virtual Port 1, DualShock: x (lower)
psx.input.port1.dualshock.cross keyboard 120

;psx, Virtual Port 1, DualShock: DOWN ↓
psx.input.port1.dualshock.down keyboard 274

;psx, Virtual Port 1, DualShock: L1 (front left shoulder)
psx.input.port1.dualshock.l1 keyboard 257

;psx, Virtual Port 1, DualShock: L2 (rear left shoulder)
psx.input.port1.dualshock.l2 keyboard 263

;psx, Virtual Port 1, DualShock: LEFT ←
psx.input.port1.dualshock.left keyboard 276

;psx, Virtual Port 1, DualShock: R1 (front right shoulder)
psx.input.port1.dualshock.r1 keyboard 259

;psx, Virtual Port 1, DualShock: R2 (rear right shoulder)
psx.input.port1.dualshock.r2 keyboard 265

;psx, Virtual Port 1, DualShock: Rapid ○ (right)
psx.input.port1.dualshock.rapid_circle

;psx, Virtual Port 1, DualShock: Rapid x (lower)
psx.input.port1.dualshock.rapid_cross

;psx, Virtual Port 1, DualShock: Rapid □ (left)
psx.input.port1.dualshock.rapid_square

;psx, Virtual Port 1, DualShock: Rapid △ (upper)
psx.input.port1.dualshock.rapid_triangle

;psx, Virtual Port 1, DualShock: RIGHT →
psx.input.port1.dualshock.right keyboard 275

;psx, Virtual Port 1, DualShock: SELECT
psx.input.port1.dualshock.select keyboard 32

;psx, Virtual Port 1, DualShock: □ (left)
psx.input.port1.dualshock.square keyboard 97

;psx, Virtual Port 1, DualShock: START
psx.input.port1.dualshock.start keyboard 13

;psx, Virtual Port 1, DualShock: △ (upper)
psx.input.port1.dualshock.triangle keyboard 119

;psx, Virtual Port 1, DualShock: UP ↑
psx.input.port1.dualshock.up keyboard 273



I've attached a text file with the full configurations
Attached Files
File Type: txt mednafen-09x.txt (252.4 KB, 3 views)
 
1 members found this post helpful.
Old 08-01-2017, 05:03 PM   #4
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware
Posts: 7,948
Blog Entries: 12

Rep: Reputation: Disabled
That's a lot of settings.

Maybe try another keyboard if you have another one around.

Quote:
I replaced gamepad with DualShock (see below )but it still doesn't work.
I had hoped that it would work. I'm afraid I'm out of ideas.

Maybe other members will see your thread and chime in to help.

Last edited by Ztcoracat; 08-01-2017 at 05:05 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Where to find Mednafen 0.9.36.4 Win.32 ? patrick295767 Linux - Software 1 06-04-2017 08:25 AM
[SOLVED] Running Mednafen without Opengl, with SDL, on Raspberry Pi... Xeratul Linux - Software 0 05-19-2017 10:58 PM
Mednafen: emulator for Playstation Xeratul Linux - Games 0 03-31-2014 01:44 PM
LXer: Let's Play: Mednafen LXer Syndicated Linux News 0 07-29-2012 10:10 AM
LXer: Carla Schroder: Whoever controls technology controls society LXer Syndicated Linux News 0 03-22-2012 10:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Games

All times are GMT -5. The time now is 07:22 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration