{"action":"created","issue":{"url":"https://api.github.com/repos/digitalLumberjack/recalbox-os/issues/424","labels_url":"https://api.github.com/repos/digitalLumberjack/recalbox-os/issues/424/labels{/name}","comments_url":"https://api.github.com/repos/digitalLumberjack/recalbox-os/issues/424/comments","events_url":"https://api.github.com/repos/digitalLumberjack/recalbox-os/issues/424/events","html_url":"https://github.com/digitalLumberjack/recalbox-os/issues/424","id":106162757,"number":424,"title":"Add Wiimote and Classic Controller support ","user":{"login":"mynickistak","id":14249543,"avatar_url":"https://avatars.githubusercontent.com/u/14249543?v=3","gravatar_id":"","url":"https://api.github.com/users/mynickistak","html_url":"https://github.com/mynickistak","followers_url":"https://api.github.com/users/mynickistak/followers","following_url":"https://api.github.com/users/mynickistak/following{/other_user}","gists_url":"https://api.github.com/users/mynickistak/gists{/gist_id}","starred_url":"https://api.github.com/users/mynickistak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mynickistak/subscriptions","organizations_url":"https://api.github.com/users/mynickistak/orgs","repos_url":"https://api.github.com/users/mynickistak/repos","events_url":"https://api.github.com/users/mynickistak/events{/privacy}","received_events_url":"https://api.github.com/users/mynickistak/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-09-12T14:20:57Z","updated_at":"2015-10-30T21:35:50Z","closed_at":"2015-09-12T15:09:30Z","body":"Classic Controller (Pro) ist just awesome for retro games and it's cheap. Is it possible to add it's support to Recalbox? I think it would bring some new users to Recalbox because RetroPie can't  handle classic controller, too*.\r\n(*Or only with some terminal work which ist too complex for a lot of users)"},"comment":{"url":"https://api.github.com/repos/digitalLumberjack/recalbox-os/issues/comments/152656775","html_url":"https://github.com/digitalLumberjack/recalbox-os/issues/424#issuecomment-152656775","issue_url":"https://api.github.com/repos/digitalLumberjack/recalbox-os/issues/424","id":152656775,"user":{"login":"nadenislamarre","id":5346913,"avatar_url":"https://avatars.githubusercontent.com/u/5346913?v=3","gravatar_id":"","url":"https://api.github.com/users/nadenislamarre","html_url":"https://github.com/nadenislamarre","followers_url":"https://api.github.com/users/nadenislamarre/followers","following_url":"https://api.github.com/users/nadenislamarre/following{/other_user}","gists_url":"https://api.github.com/users/nadenislamarre/gists{/gist_id}","starred_url":"https://api.github.com/users/nadenislamarre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nadenislamarre/subscriptions","organizations_url":"https://api.github.com/users/nadenislamarre/orgs","repos_url":"https://api.github.com/users/nadenislamarre/repos","events_url":"https://api.github.com/users/nadenislamarre/events{/privacy}","received_events_url":"https://api.github.com/users/nadenislamarre/received_events","type":"User","site_admin":false},"created_at":"2015-10-30T21:35:49Z","updated_at":"2015-10-30T21:35:49Z","body":"I'm working on that issue.\r\nBasically, the issue is that linux driver make as if the wiimote is not a joystick ; indeed, it's not really, it's more a special device.\r\nThe delta can be fixed quite easyly for sd2 :\r\n\r\n1) by addind some udev rules\r\nSUBSYSTEM==\"input\", ATTRS{name}==\"Nintendo Wii Remote Classic Controller\", MODE=\"0666\", ENV{ID_INPUT_JOYSTICK}=\"1\"\r\nSUBSYSTEM==\"input\", ATTRS{name}==\"Nintendo Wii Remote\", MODE=\"0666\", ENV{ID_INPUT_JOYSTICK}=\"1\"\r\n\r\n2) by replacing in SDL2 joystick files, BTN_MISC by 0, because joysticks are supposed to have buttons over BTN_MISC. 4 buttons of the wiimote are KEY_LEFT, UP, DOWN, RIGH, under BTN_MISC and are therefore ignored for compatibility reason (sdl1 for example).\r\n\r\nAt the end, on my raspberry, i get the wiimote working. Unfortunally, as far as i start a game, it doesn't work anymore. I think it's because some things are based on sdl1 in recalbox. So i tried to fix sdl1, but it's harder.\r\n\r\nSo finally, i'm modifying the kernel driver of the wiimote to change the buttons keys over KEY_MISC.\r\n\r\nFor the controller, i guess it will not be enough, because on my computer, the hats have still some strnage behavior that must be fixed.\r\n"}}