AmatCoder / mednaffe

A front-end (GUI) for mednafen emulator
GNU General Public License v3.0
420 stars 35 forks source link

key mapping won't work in gui on Steam deck. #162

Open yuanye8425 opened 1 year ago

yuanye8425 commented 1 year ago

Desktop mode. It will recognize the first button I pressed. Then stop recognizing all other buttons. So weird. Flatpak Version. (I already switched to gamepad mode by holding start button, and with steam launched.) 1674686543030880759829412891973 Like in the photo. Up button was assigned successfully. Then it stops working. Can't be hardware. Built in controller works fine with everything else.

lonelycare commented 8 months ago

cannot map controller input on my steam deck either, not even the first button press

lonelycare commented 8 months ago

Found a workaround for my use case (2022 Steam Deck using ES-DE)

  1. launch a game with mednafen from EmulationStation DE in game mode
  2. press Alt-Shift-1 to configure buttons (must be in game mode, in desktop mode the start button won't map) *mapping the trigger buttons is a bit tricky, since it registers both hold and release, so I had to edit the config file

Here are my settings for mednafen.cfg (for pcengine and sega saturn):

;Input device for Port 1 pce.input.port1 gamepad

;pce, Port 1, Gamepad: DOWN ↓ pce.input.port1.gamepad.down joystick 0x000328de11ff00010008000b00000000 abs_7+

;pce, Port 1, Gamepad: I pce.input.port1.gamepad.i joystick 0x000328de11ff00010008000b00000000 button_0

;pce, Port 1, Gamepad: II pce.input.port1.gamepad.ii joystick 0x000328de11ff00010008000b00000000 button_2

;pce, Port 1, Gamepad: III pce.input.port1.gamepad.iii joystick 0x000328de11ff00010008000b00000000 button_3

;pce, Port 1, Gamepad: IV pce.input.port1.gamepad.iv joystick 0x000328de11ff00010008000b00000000 button_1

;pce, Port 1, Gamepad: LEFT ← pce.input.port1.gamepad.left joystick 0x000328de11ff00010008000b00000000 abs_6-

;pce, Port 1, Gamepad: Mode pce.input.port1.gamepad.mode_select joystick 0x000328de11ff00010008000b00000000 abs_2+

;Default position for switch "Mode". pce.input.port1.gamepad.mode_select.defpos 2

;pce, Port 1, Gamepad: Rapid I pce.input.port1.gamepad.rapid_i joystick 0x000328de11ff00010008000b00000000 button_1

;pce, Port 1, Gamepad: Rapid II pce.input.port1.gamepad.rapid_ii joystick 0x000328de11ff00010008000b00000000 button_3

;pce, Port 1, Gamepad: RIGHT → pce.input.port1.gamepad.right joystick 0x000328de11ff00010008000b00000000 abs_6+

;pce, Port 1, Gamepad: RUN pce.input.port1.gamepad.run joystick 0x000328de11ff00010008000b00000000 button_7

;pce, Port 1, Gamepad: SELECT pce.input.port1.gamepad.select joystick 0x000328de11ff00010008000b00000000 button_6

;pce, Port 1, Gamepad: UP ↑ pce.input.port1.gamepad.up joystick 0x000328de11ff00010008000b00000000 abs_7-

;pce, Port 1, Gamepad: V pce.input.port1.gamepad.v joystick 0x000328de11ff00010008000b00000000 button_4

;pce, Port 1, Gamepad: VI pce.input.port1.gamepad.vi joystick 0x000328de11ff00010008000b00000000 button_5

;ss, Virtual Port 1, Digital Gamepad: A ss.input.port1.gamepad.a joystick 0x000328de11ff00010008000b00000000 button_2

;ss, Virtual Port 1, Digital Gamepad: B ss.input.port1.gamepad.b joystick 0x000328de11ff00010008000b00000000 button_0

;ss, Virtual Port 1, Digital Gamepad: C ss.input.port1.gamepad.c joystick 0x000328de11ff00010008000b00000000 button_1

;ss, Virtual Port 1, Digital Gamepad: DOWN ↓ ss.input.port1.gamepad.down joystick 0x000328de11ff00010008000b00000000 abs_7+

;ss, Virtual Port 1, Digital Gamepad: LEFT ← ss.input.port1.gamepad.left joystick 0x000328de11ff00010008000b00000000 abs_6-

;ss, Virtual Port 1, Digital Gamepad: Left Shoulder ss.input.port1.gamepad.ls joystick 0x000328de11ff00010008000b00000000 abs_2+

;ss, Virtual Port 1, Digital Gamepad: RIGHT → ss.input.port1.gamepad.right joystick 0x000328de11ff00010008000b00000000 abs_6+

;ss, Virtual Port 1, Digital Gamepad: Right Shoulder ss.input.port1.gamepad.rs joystick 0x000328de11ff00010008000b00000000 abs_5+

;ss, Virtual Port 1, Digital Gamepad: START ss.input.port1.gamepad.start joystick 0x000328de11ff00010008000b00000000 button_7

;ss, Virtual Port 1, Digital Gamepad: UP ↑ ss.input.port1.gamepad.up joystick 0x000328de11ff00010008000b00000000 abs_7-

;ss, Virtual Port 1, Digital Gamepad: X ss.input.port1.gamepad.x joystick 0x000328de11ff00010008000b00000000 button_4

;ss, Virtual Port 1, Digital Gamepad: Y ss.input.port1.gamepad.y joystick 0x000328de11ff00010008000b00000000 button_3

;ss, Virtual Port 1, Digital Gamepad: Z ss.input.port1.gamepad.z joystick 0x000328de11ff00010008000b00000000 button_5

SkywardShadow commented 7 months ago

I also cannot map any controls for this on the Steam Deck.