{"action":"created","issue":{"url":"https://api.github.com/repos/irtimmer/moonlight-embedded/issues/696","repository_url":"https://api.github.com/repos/irtimmer/moonlight-embedded","labels_url":"https://api.github.com/repos/irtimmer/moonlight-embedded/issues/696/labels{/name}","comments_url":"https://api.github.com/repos/irtimmer/moonlight-embedded/issues/696/comments","events_url":"https://api.github.com/repos/irtimmer/moonlight-embedded/issues/696/events","html_url":"https://github.com/irtimmer/moonlight-embedded/issues/696","id":369930661,"node_id":"MDU6SXNzdWUzNjk5MzA2NjE=","number":696,"title":"Home (Guide) and Select (Back) button maps as dpad up on Xbox One Wireless, works fine on X360 Wired","user":{"login":"sondregronas","id":44143748,"node_id":"MDQ6VXNlcjQ0MTQzNzQ4","avatar_url":"https://avatars1.githubusercontent.com/u/44143748?v=4","gravatar_id":"","url":"https://api.github.com/users/sondregronas","html_url":"https://github.com/sondregronas","followers_url":"https://api.github.com/users/sondregronas/followers","following_url":"https://api.github.com/users/sondregronas/following{/other_user}","gists_url":"https://api.github.com/users/sondregronas/gists{/gist_id}","starred_url":"https://api.github.com/users/sondregronas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sondregronas/subscriptions","organizations_url":"https://api.github.com/users/sondregronas/orgs","repos_url":"https://api.github.com/users/sondregronas/repos","events_url":"https://api.github.com/users/sondregronas/events{/privacy}","received_events_url":"https://api.github.com/users/sondregronas/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-10-14T18:39:29Z","updated_at":"2018-11-27T16:38:09Z","closed_at":null,"author_association":"NONE","body":"**_NVidia Geforce Experience version:_** 3.15.0.164\r\n**Moonlight Embedded version:** 2.4.7\r\n**Moonlight Embedded source:** compiled from source\r\n**Moonlight Embedded running on:** Raspberry Pi\r\n**Moonlight Embedded running on distribution:** Raspbian, RetroPie OS\r\n\r\n**Verbose output `-verbose` of Moonlight Embedded:**\r\n```\r\nMoonlight Embedded 2.4.7 (PI;ALSA;EMBEDDED)\r\nConnect to 192.168.10.240...\r\nNVIDIA GeForce GTX 1080 Ti, GFE 3.15.0.164 (gs_04_09_24784787, 7.1.409.0)\r\nPlatform Raspberry Pi (Broadcom)\r\nLoading mappingfile /usr/share/moonlight/gamecontrollerdb.txt\r\nCan't map (dpdown:+a1)\r\nCan't map (dpleft:-a0)\r\nCan't map (dpright:+a0)\r\nCan't map (dpup:-a1)\r\nCan't map (dpdown:+a1)\r\nCan't map (dpleft:-a0)\r\nCan't map (dpright:+a0)\r\nCan't map (dpup:-a1)\r\nCan't map (dpdown:+a1)\r\nCan't map (dpleft:-a0)\r\nCan't map (dpright:+a0)\r\nCan't map (dpup:-a1)\r\nCan't map (dpdown:+a1)\r\nCan't map (dpleft:-a0)\r\nCan't map (dpright:+a0)\r\nCan't map (dpup:-a1)\r\nCan't map (lefttrigger:+a3)\r\nCan't map (righttrigger:-a3)\r\nCan't map (dpdown:+a1)\r\nCan't map (dpleft:-a0)\r\nCan't map (dpright:+a0)\r\nCan't map (dpup:-a1)\r\nCan't map (dpdown:+a1)\r\nCan't map (dpleft:-a0)\r\nCan't map (dpright:+a0)\r\nCan't map (dpup:-a1)\r\nDetected Xbox Wireless Controller (050000005e040000fd02000003090000) on /dev/input/event2 as Xbox One Wireless Controller\r\nDetected Microsoft X-Box 360 pad (030000005e0400008e02000014010000) on /dev/input/event1 as X360 Controller\r\nDetected Microsoft X-Box 360 pad (030000005e0400008e02000014010000) on /dev/input/event0 as X360 Controller\r\nStream 1920 x 1080, 60 fps, 20000 kbps\r\nInitializing platform...done\r\nResolving host name...done\r\nStarting RTSP handshake...done\r\nInitializing control stream...done\r\nInitializing video stream...done\r\nInitializing audio stream...done\r\nInitializing input stream...done\r\nStarting control stream...done\r\nStarting video stream...done\r\nStarting audio stream...done\r\nStarting input stream...done\r\nControl stream received disconnect event\r\nLoss Stats: Transaction failed: 11\r\nStopping input stream...done\r\nStopping audio stream...done\r\nStopping video stream...done\r\nStopping control stream...done\r\nCleaning up input stream...done\r\nCleaning up audio stream...done\r\nCleaning up video stream...done\r\nCleaning up control stream...done\r\nCleaning up platform...done\r\n```\r\n\r\n**What is the expected result?**\r\nXbox and Select button on Xbox One Wireless controllers work as separate inputs, to access the Steam Big Picture Menu\r\n\r\nThe gamecontrollerdb.txt looks correct to me:\r\n`050000005e040000fd02000003090000,Xbox One Wireless Controller,a:b0,b:b1,back:b15,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b16,leftshoulder:b6,leftstick:b13,lefttrigger:a5,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b14,righttrigger:a4,rightx:a2,righty:a3,start:b11,x:b3,y:b4,`\r\n\r\n**What happens instead of that?**\r\nXbox button & Select button give the same input as dpup (h0.1) when running steam. In RetroPie they are separate\r\n\r\nI've tried: Running without xboxdrv, xpad. Running with either or both at the same time. I've also tried remapping it from the Steam menu but I get input dpup h0.1\r\n\r\nEdit: Results from evtest:\r\n```\r\n# HOME\r\nEvent: time 1539541513.212013, type 4 (EV_MSC), code 4 (MSC_SCAN), value c0223\r\nEvent: time 1539541513.212013, type 1 (EV_KEY), code 172 (KEY_HOMEPAGE), value 1\r\nEvent: time 1539541513.212013, -------------- SYN_REPORT ------------\r\nEvent: time 1539541513.264478, type 4 (EV_MSC), code 4 (MSC_SCAN), value c0223\r\nEvent: time 1539541513.264478, type 1 (EV_KEY), code 172 (KEY_HOMEPAGE), value 0\r\nEvent: time 1539541513.264478, -------------- SYN_REPORT ------------\r\n\r\n# SELECT\r\nEvent: time 1539541544.097280, type 4 (EV_MSC), code 4 (MSC_SCAN), value c0224\r\nEvent: time 1539541544.097280, type 1 (EV_KEY), code 158 (KEY_BACK), value 1\r\nEvent: time 1539541544.097280, -------------- SYN_REPORT ------------\r\nEvent: time 1539541544.187288, type 4 (EV_MSC), code 4 (MSC_SCAN), value c0224\r\nEvent: time 1539541544.187288, type 1 (EV_KEY), code 158 (KEY_BACK), value 0\r\nEvent: time 1539541544.187288, -------------- SYN_REPORT ------------\r\n\r\n# D-PAD UP\r\nEvent: time 1539541546.122303, type 3 (EV_ABS), code 17 (ABS_HAT0Y), value -1\r\nEvent: time 1539541546.122303, -------------- SYN_REPORT ------------\r\nEvent: time 1539541546.227266, type 3 (EV_ABS), code 17 (ABS_HAT0Y), value 0\r\nEvent: time 1539541546.227266, -------------- SYN_REPORT ------------\r\n```\r\n\r\nEdit2>\r\nDidn't see https://github.com/irtimmer/moonlight-embedded/issues/675 in the list of issues earlier - sorry for doubleposting!"},"comment":{"url":"https://api.github.com/repos/irtimmer/moonlight-embedded/issues/comments/442127051","html_url":"https://github.com/irtimmer/moonlight-embedded/issues/696#issuecomment-442127051","issue_url":"https://api.github.com/repos/irtimmer/moonlight-embedded/issues/696","id":442127051,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MjEyNzA1MQ==","user":{"login":"pokemonw2","id":11874376,"node_id":"MDQ6VXNlcjExODc0Mzc2","avatar_url":"https://avatars1.githubusercontent.com/u/11874376?v=4","gravatar_id":"","url":"https://api.github.com/users/pokemonw2","html_url":"https://github.com/pokemonw2","followers_url":"https://api.github.com/users/pokemonw2/followers","following_url":"https://api.github.com/users/pokemonw2/following{/other_user}","gists_url":"https://api.github.com/users/pokemonw2/gists{/gist_id}","starred_url":"https://api.github.com/users/pokemonw2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pokemonw2/subscriptions","organizations_url":"https://api.github.com/users/pokemonw2/orgs","repos_url":"https://api.github.com/users/pokemonw2/repos","events_url":"https://api.github.com/users/pokemonw2/events{/privacy}","received_events_url":"https://api.github.com/users/pokemonw2/received_events","type":"User","site_admin":false},"created_at":"2018-11-27T16:38:09Z","updated_at":"2018-11-27T16:38:09Z","author_association":"NONE","body":"Hey guys i found a solution that works for me (Raspberry pi 3, Retropie)\r\nI'll try to broadly outline the steps here:\r\n\r\n1. Navigate to /home/pi/RetroPie-Setup\r\n2. Fire up the retropie start up script `sudo sh retropie_setup.sh`\r\n3. Go to manage packages, then driver, and then xpad\r\n4. Remove xpad\r\n5. Follow the instructions at https://github.com/atar-axis/xpadneo/ to install xpadneo and pair with controller\r\n6. Reboot\r\n7. Now you will have to add a mapping script for the controller. While i can't guarantee that your script will be the same as mine, you will have to add an extra line in /usr/local/share/moonlight/gamecontrollerdb.txt \r\nor \r\n/usr/share/moonlight/gamecontrollerdb.txt\r\n\r\nHere's my script entry that worked for my controller: \r\n\r\n`050000005e040000fd02000030110000,Xbox Wireless\r\nController,a:b0,b:b1,x:b2,y:b3,start:b7,guide:b8,back:b6,leftstick:b9,rightstick:b10,dpup:h0.9,dpleft:h0.8,dpdown:h0.12,dpright:h0.2,leftx:a0,lefty:a1,rightx:a3,righty:a4,lefttrigger:a2,righttrigger:a5,leftshoulder:b4,rightshoulder:b5,platform:Linux`\r\n\r\n8. Reboot and see if it works \r\n"}}
{"actor":{"display_login":"pokemonw2"}}