{"action":"created","issue":{"url":"https://api.github.com/repos/RobertBeckebans/RBDOOM-3-BFG/issues/89","labels_url":"https://api.github.com/repos/RobertBeckebans/RBDOOM-3-BFG/issues/89/labels{/name}","comments_url":"https://api.github.com/repos/RobertBeckebans/RBDOOM-3-BFG/issues/89/comments","events_url":"https://api.github.com/repos/RobertBeckebans/RBDOOM-3-BFG/issues/89/events","html_url":"https://github.com/RobertBeckebans/RBDOOM-3-BFG/issues/89","id":31697264,"number":89,"title":"Add support for Mouse4 and Mouse5 in Linux","user":{"login":"slacka","id":2635044,"avatar_url":"https://avatars.githubusercontent.com/u/2635044?v=3","gravatar_id":"","url":"https://api.github.com/users/slacka","html_url":"https://github.com/slacka","followers_url":"https://api.github.com/users/slacka/followers","following_url":"https://api.github.com/users/slacka/following{/other_user}","gists_url":"https://api.github.com/users/slacka/gists{/gist_id}","starred_url":"https://api.github.com/users/slacka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slacka/subscriptions","organizations_url":"https://api.github.com/users/slacka/orgs","repos_url":"https://api.github.com/users/slacka/repos","events_url":"https://api.github.com/users/slacka/events{/privacy}","received_events_url":"https://api.github.com/users/slacka/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/RobertBeckebans/RBDOOM-3-BFG/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2014-04-17T02:48:47Z","updated_at":"2015-01-26T23:39:49Z","closed_at":null,"body":"In Doom 3,  when you go to settings and try to bind the 4th and 5 mouse buttons, a \"?\" is displayed instead of MOUSE4 or MOUSE5.  After binding, using the buttons produces no response in game.\r\n\r\nIn **sdl_events.cpp**, I tried adding \r\n\r\n```\r\n                    case SDL_BUTTON_X1:\r\n\t\t\t\t\t\tres.evValue = K_MOUSE4;\r\n\t\t\t\t\t\tmouse_polls.Append( mouse_poll_t( M_ACTION4, ev.button.state == SDL_PRESSED ? 1 : 0 ) );\r\n\t\t\t\t\t\tbreak;\r\n\r\n                     case SDL_BUTTON_X2:\r\n\t\t\t\t\t\tres.evValue = K_MOUSE5;\r\n\t\t\t\t\t\tmouse_polls.Append( mouse_poll_t( M_ACTION5, ev.button.state == SDL_PRESSED ? 1 : 0 ) );\r\n\t\t\t\t\t\tbreak;\r\n```\r\nBut it did not fix the issue. I'm unfamiliar with this code base, and the issue probably lies elsewhere.  Under Mint 16, I have no issue with mapping these buttons on my MX 518 in other ioquake3 based games like Open Arena.\r\n\r\nIn **SDL_mouse.h** we have **\"#define SDL_BUTTON_X1\t\t6\"** and both **K_MOUSE4** and **M_ACTION4** are enum's in **sys_public.h**. Any idea what I'm missing here?\r\n\r\nUpdate: This appears to be a Linux specific bug. When I compiled the vs2013-32bit code on my Win 7 box, I was able to bind and use the 2 thumb buttons on my mouse. "},"comment":{"url":"https://api.github.com/repos/RobertBeckebans/RBDOOM-3-BFG/issues/comments/71562216","html_url":"https://github.com/RobertBeckebans/RBDOOM-3-BFG/issues/89#issuecomment-71562216","issue_url":"https://api.github.com/repos/RobertBeckebans/RBDOOM-3-BFG/issues/89","id":71562216,"user":{"login":"DanielGibson","id":1216493,"avatar_url":"https://avatars.githubusercontent.com/u/1216493?v=3","gravatar_id":"","url":"https://api.github.com/users/DanielGibson","html_url":"https://github.com/DanielGibson","followers_url":"https://api.github.com/users/DanielGibson/followers","following_url":"https://api.github.com/users/DanielGibson/following{/other_user}","gists_url":"https://api.github.com/users/DanielGibson/gists{/gist_id}","starred_url":"https://api.github.com/users/DanielGibson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DanielGibson/subscriptions","organizations_url":"https://api.github.com/users/DanielGibson/orgs","repos_url":"https://api.github.com/users/DanielGibson/repos","events_url":"https://api.github.com/users/DanielGibson/events{/privacy}","received_events_url":"https://api.github.com/users/DanielGibson/received_events","type":"User","site_admin":false},"created_at":"2015-01-26T23:39:49Z","updated_at":"2015-01-26T23:39:49Z","body":"I (mostly) fixed this problem in opentech: https://github.com/OpenTechEngine/OpenTechBFG/commit/f19230cfa6539e5d2be399ec5f5516c3dee0d5ee\r\n\r\nOne small issue is that, even though the buttons are assignable, the doom3bfg control settings just show \"????\" instead of \"Mouse 4\" or something.  \r\nI might investigate that problem a bit more when I have some time and prepare a pull request."}}