moonlight-stream / moonlight-embedded

Gamestream client for embedded systems
https://github.com/moonlight-stream/moonlight-embedded/wiki
GNU General Public License v3.0
1.5k stars 325 forks source link

Changing gamecontrollerdb.txt on RetroPie doesn't do anything #738

Closed jacobmix closed 5 years ago

jacobmix commented 5 years ago

_NVidia Geforce Experience version: 3.18.0.94 Moonlight Embedded version: Latest from GitHub master (irtimmer/moonlight-embedded) Moonlight Embedded source: deb http://archive.itimmer.nl/raspbian/moonlight stretch main Moonlight Embedded running on: Raspberry Pi 3 Model B+ Moonlight Embedded running on distribution: RetroPie Ran, and updated with: https://github.com/jacobmix/moonlight-retropie

Verbose output -verbose of Moonlight Embedded:

What is the expected result? Able to fix the controller mapping.

What happens instead of that? Controllers still has the same mappings.

I have a Mayflash Magic-NS, and it works almost perfectly fine on DirectInput (blue) But my PS3, and PS4 controller has X as Circle, and Triangle as Square. (Any controller i connect to the Matflash Magic-NS should act the same tho) Nothing i do in /home/pi/moonlight-embedded/gamecontrollerdb.txt seems to matter. I don't got a "/usr/share/moonlight" or "/usr/share/moonlight-embedded"

Tried re-installed Moonlight, and editeting the "0300000079000000d218000011010000,MAGIC-NS" entry in "gamecontrollerdb.txt" ( https://github.com/irtimmer/moonlight-embedded/blob/master/gamecontrollerdb.txt ) Still no luck. (It's the right ID, and name. So should be the right thing to edit) I also tried the same with Xinput (green). That has more issues. L2 works like Select. R2 works like Start. Right stick up is left, down is right. Right stick left, and right do nothing. Stick (R3/L3) buttons do nothing. Start, and Select do nothing It doesn't excist in gamecontrollerdb.txt tho. Adding it, and changing it still gives the error: No mapping available for Generic X-Box pad (0300000079000000d318000001010000) on /dev/input/event0 Also tried "moonlight map controller.map -input /dev/input/event0" But when getting to the right stick nothing seems to work. (For when i tried with Xinput anyway. Dinput worked after trying for a bit.) Also tried deleting everything in gamecontrollerdb.txt and only leave MAGIC-NS. Still the same.

jacobmix commented 5 years ago

I guess controller mapping doesn't work on RetroPie? https://retropie.org.uk/forum/topic/11592/moonlight-controller-issue-gamecontrollerdb-txt

jacobmix commented 5 years ago

Did

cd /
find -name "gamecontrollerdb.txt"

Then found ./usr/local/share/moonlight/gamecontrollerdb.txt So it's in local. God damn do i feel like an idiot. Welp, doing sudo cp /home/pi/moonlight-embedded/gamecontrollerdb.txt /usr/local/share/moonlight/gamecontrollerdb.txt fixes my issue.