{"action":"created","issue":{"url":"https://api.github.com/repos/uglyDwarf/evdevshift/issues/3","repository_url":"https://api.github.com/repos/uglyDwarf/evdevshift","labels_url":"https://api.github.com/repos/uglyDwarf/evdevshift/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/uglyDwarf/evdevshift/issues/3/comments","events_url":"https://api.github.com/repos/uglyDwarf/evdevshift/issues/3/events","html_url":"https://github.com/uglyDwarf/evdevshift/issues/3","id":146587599,"number":3,"title":"X-plane 10 problem. Saiteck Mode swicher has the same button mapping for A and B possition","user":{"login":"mwozny123","id":650550,"avatar_url":"https://avatars.githubusercontent.com/u/650550?v=3","gravatar_id":"","url":"https://api.github.com/users/mwozny123","html_url":"https://github.com/mwozny123","followers_url":"https://api.github.com/users/mwozny123/followers","following_url":"https://api.github.com/users/mwozny123/following{/other_user}","gists_url":"https://api.github.com/users/mwozny123/gists{/gist_id}","starred_url":"https://api.github.com/users/mwozny123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mwozny123/subscriptions","organizations_url":"https://api.github.com/users/mwozny123/orgs","repos_url":"https://api.github.com/users/mwozny123/repos","events_url":"https://api.github.com/users/mwozny123/events{/privacy}","received_events_url":"https://api.github.com/users/mwozny123/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-04-07T11:26:29Z","updated_at":"2016-04-13T20:11:42Z","closed_at":"2016-04-13T20:11:42Z","body":"I've evdevshift commit no 4 version (commit no 6 cant compile - already reported).\r\n\r\nMy joystick mode selector on screenshot:\r\n![modeswitcher](https://cloud.githubusercontent.com/assets/650550/14349084/cb845146-fcc0-11e5-80ac-8cc3219790ec.jpeg)\r\n\r\nX-plane 10 recognize the same button mappings for Mode A,B (different when OFF), but the same for A and B, so it's a partial sucess;). \r\n\r\nMy configuration's in attachment:\r\n\r\n[Saiteck_AV8R-01.conf](https://github.com/uglyDwarf/evdevshift/files/208225/Saiteck_AV8R-01.conf.txt)\r\n\r\nEvdevshift console output seems to be ok:\r\n\r\n> (...)\r\nState:\r\n      Button BUTTON_12D => 301\r\n        Button BTN_BASE5 (298) will be mapped to 0.\r\n        Button BTN_BASE4 (297) will be mapped to 1.\r\n        Button BTN_BASE3 (296) will be mapped to 2.\r\n        Button BTN_BASE2 (295) will be mapped to 3.\r\n        Button BTN_BASE (294) will be mapped to 4.\r\n        Button BTN_PINKIE (293) will be mapped to 5.\r\n        Button BTN_TOP2 (292) will be mapped to 6.\r\nState:\r\n      Button BUTTON_12C => 300\r\n        Button BTN_BASE5 (298) will be mapped to 7.\r\n        Button BTN_BASE4 (297) will be mapped to 8.\r\n        Button BTN_BASE3 (296) will be mapped to 9.\r\n        Button BTN_BASE2 (295) will be mapped to 10.\r\n        Button BTN_BASE (294) will be mapped to 11.\r\n        Button BTN_PINKIE (293) will be mapped to 12.\r\n        Button BTN_TOP2 (292) will be mapped to 13.\r\nAxis Maps:\r\nFile 'dev.conf' opened.\r\nNew device created.\r\n\r\nBut X-plane has a problem with it. E.g. \r\nmode OFF - button \"T3\" (a.k.a \"BTN_BASE\") - recognized by X-plane as button 327\r\nmode A (a.k.a. \"KEY_#300\" [evdevtest-qt]) - button \"T3\" - recognized by X-plane as button 167\r\nmode B (a.k.a. \"KEY_#301\" [evdevtest-qt])- button \"T3\" - recognized by X-plane as button 167\r\n\r\nI've also tired to use such configuration:\r\n\r\n> if(BUTTON_12C||BUTTON_12D){\r\n\r\nbut it didn't work for me:\r\n> \r\nParsing file 'dev.conf'.\r\nUnmatched character '|' at line 28.\r\nUnmatched character '|' at line 28.\r\nConfig parser: syntax error, unexpected TOKEN_STRING, expecting TOKEN_RPAREN in file dev.conf, line 28 near 'BUTTON_12D'."},"comment":{"url":"https://api.github.com/repos/uglyDwarf/evdevshift/issues/comments/209626153","html_url":"https://github.com/uglyDwarf/evdevshift/issues/3#issuecomment-209626153","issue_url":"https://api.github.com/repos/uglyDwarf/evdevshift/issues/3","id":209626153,"user":{"login":"mwozny123","id":650550,"avatar_url":"https://avatars.githubusercontent.com/u/650550?v=3","gravatar_id":"","url":"https://api.github.com/users/mwozny123","html_url":"https://github.com/mwozny123","followers_url":"https://api.github.com/users/mwozny123/followers","following_url":"https://api.github.com/users/mwozny123/following{/other_user}","gists_url":"https://api.github.com/users/mwozny123/gists{/gist_id}","starred_url":"https://api.github.com/users/mwozny123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mwozny123/subscriptions","organizations_url":"https://api.github.com/users/mwozny123/orgs","repos_url":"https://api.github.com/users/mwozny123/repos","events_url":"https://api.github.com/users/mwozny123/events{/privacy}","received_events_url":"https://api.github.com/users/mwozny123/received_events","type":"User","site_admin":false},"created_at":"2016-04-13T20:11:42Z","updated_at":"2016-04-13T20:11:42Z","body":"Works great now:) Many thanks:)"}}