{"action":"created","issue":{"url":"https://api.github.com/repos/irtimmer/moonlight-embedded/issues/330","repository_url":"https://api.github.com/repos/irtimmer/moonlight-embedded","labels_url":"https://api.github.com/repos/irtimmer/moonlight-embedded/issues/330/labels{/name}","comments_url":"https://api.github.com/repos/irtimmer/moonlight-embedded/issues/330/comments","events_url":"https://api.github.com/repos/irtimmer/moonlight-embedded/issues/330/events","html_url":"https://github.com/irtimmer/moonlight-embedded/issues/330","id":138828459,"number":330,"title":"xbox360 controller problem in game","user":{"login":"Kheiryk","id":16276098,"avatar_url":"https://avatars.githubusercontent.com/u/16276098?v=3","gravatar_id":"","url":"https://api.github.com/users/Kheiryk","html_url":"https://github.com/Kheiryk","followers_url":"https://api.github.com/users/Kheiryk/followers","following_url":"https://api.github.com/users/Kheiryk/following{/other_user}","gists_url":"https://api.github.com/users/Kheiryk/gists{/gist_id}","starred_url":"https://api.github.com/users/Kheiryk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kheiryk/subscriptions","organizations_url":"https://api.github.com/users/Kheiryk/orgs","repos_url":"https://api.github.com/users/Kheiryk/repos","events_url":"https://api.github.com/users/Kheiryk/events{/privacy}","received_events_url":"https://api.github.com/users/Kheiryk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":23,"created_at":"2016-03-06T19:44:13Z","updated_at":"2016-04-07T13:30:43Z","closed_at":null,"body":"Hello,\r\n\r\nNVidia Geforce Experience version: **2.10.2.40**\r\nMoonlight Embedded version: **2.1.4**\r\nMoonlight Embedded running on: **RPI2**\r\n\r\nI've a problem with my controller xbox360 wired, when i check the controls with the command : \r\n**sudo xboxdrv**\r\nno problem, the controls appears\r\n![xbox360](https://cloud.githubusercontent.com/assets/16276098/13556607/1aa5beaa-e3de-11e5-937e-e647e21e9a08.JPG)\r\n\r\nI start steam with this command :\r\n**moonlight stream ip -mapping /home/pi/xbox.map -1080 -app \"Steam\"**\r\n![xbox360_2](https://cloud.githubusercontent.com/assets/16276098/13556641/2f8d514c-e3df-11e5-86b6-6ffdf3849dd9.JPG)\r\n\r\n\r\nin my rc.local\r\n**xboxdrv --trigger-as-button --wid 0 --led 2 --detach-kernel-driver --deadzone 4000 --dpad-rotation 90 --axismap -DPAD_X=DPAD_X --silent &**\r\n\r\nand i've an xbox.map with my controller config (works in 2.1.2)\r\nthe game start, but the controller doesn't work\r\n\r\nif you can help me please\r\nthanks\r\n\r\n\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/irtimmer/moonlight-embedded/issues/comments/206903828","html_url":"https://github.com/irtimmer/moonlight-embedded/issues/330#issuecomment-206903828","issue_url":"https://api.github.com/repos/irtimmer/moonlight-embedded/issues/330","id":206903828,"user":{"login":"7hunderbug","id":983274,"avatar_url":"https://avatars.githubusercontent.com/u/983274?v=3","gravatar_id":"","url":"https://api.github.com/users/7hunderbug","html_url":"https://github.com/7hunderbug","followers_url":"https://api.github.com/users/7hunderbug/followers","following_url":"https://api.github.com/users/7hunderbug/following{/other_user}","gists_url":"https://api.github.com/users/7hunderbug/gists{/gist_id}","starred_url":"https://api.github.com/users/7hunderbug/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/7hunderbug/subscriptions","organizations_url":"https://api.github.com/users/7hunderbug/orgs","repos_url":"https://api.github.com/users/7hunderbug/repos","events_url":"https://api.github.com/users/7hunderbug/events{/privacy}","received_events_url":"https://api.github.com/users/7hunderbug/received_events","type":"User","site_admin":false},"created_at":"2016-04-07T13:30:43Z","updated_at":"2016-04-07T13:30:43Z","body":"According to your first post on this issue, your Xbox 360 wireless controller is using the /dev/input/event2 device handle, which means you have more than one input device connected to your Raspberry Pi. This is fine however, if you don't specify the input device for moonlight-embedded, it defaults to /dev/input/event0 (as far as I know). In all your posts here, you haven't yet said you run moonlight-embedded with the -input switch. This is likely the cause of your issue. \r\n\r\nTo fix your problem you likely want to run moonlight-embedded like so:\r\n\r\n`moonlight-embedded stream -mapping /home/pi/xbox.map -input /dev/input/event2 -1080 -app \"Steam\" IP.address`\r\n\r\nAlso, if you don't use the xpad driver at all, you can prevent it from loading into the kernel at boot time by adding\r\n`blacklist xpad` \r\nto /etc/modprobe.d/xpad-blacklist.conf (create this file because it won't exist)\r\n\r\nAnother thing; you won't need `--dpad-rotation 90 --axismap -DPAD_X=DPAD_X` arguments for xboxdrv (especially if you make your own mapping file - be sure to make a new moonlight-embedded mapping file if you remove these arguments from xboxdrv though).\r\n\r\nBe careful which /dev/input/event* device you use with the -input argument for moonlight-embedded. On my Raspberry Pi with a keyboard and mouse plugged in and with xboxdrv run from rc.local, sometimes the kernel enumerates the xboxdrv input as event0 and sometimes as event2."}}