{"action":"created","issue":{"url":"https://api.github.com/repos/chocolate-doom/chocolate-doom/issues/503","labels_url":"https://api.github.com/repos/chocolate-doom/chocolate-doom/issues/503/labels{/name}","comments_url":"https://api.github.com/repos/chocolate-doom/chocolate-doom/issues/503/comments","events_url":"https://api.github.com/repos/chocolate-doom/chocolate-doom/issues/503/events","html_url":"https://github.com/chocolate-doom/chocolate-doom/issues/503","id":53726462,"number":503,"title":"turning mouse wheel may lead to lock-up in Hertic and Hexen","user":{"login":"fabiangreffrath","id":6449237,"avatar_url":"https://avatars.githubusercontent.com/u/6449237?v=3","gravatar_id":"","url":"https://api.github.com/users/fabiangreffrath","html_url":"https://github.com/fabiangreffrath","followers_url":"https://api.github.com/users/fabiangreffrath/followers","following_url":"https://api.github.com/users/fabiangreffrath/following{/other_user}","gists_url":"https://api.github.com/users/fabiangreffrath/gists{/gist_id}","starred_url":"https://api.github.com/users/fabiangreffrath/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fabiangreffrath/subscriptions","organizations_url":"https://api.github.com/users/fabiangreffrath/orgs","repos_url":"https://api.github.com/users/fabiangreffrath/repos","events_url":"https://api.github.com/users/fabiangreffrath/events{/privacy}","received_events_url":"https://api.github.com/users/fabiangreffrath/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-01-08T08:37:42Z","updated_at":"2015-01-13T09:02:07Z","closed_at":null,"body":"Hi fraggle,\r\n\r\nthis has been reported against Crispy Doom here:\r\nhttp://www.doomworld.com/vb/post/1335057\r\n\r\nSummary:\r\nIn Heretic & Hexen, if you scroll the mouse wheel in the main menu the game locks. Doom and Strife do not. \r\n\r\nActually, this bug is also reproducible with Chocolate Heretic if you apply some action (e.g. change to prev and next weapon) to the mouse wheel \"buttons\". The main difference is that these mappings are set by default in Crispy Doom/Heretic.\r\n\r\nThe main reason for the lock is that in Heretic and Hexen, the MN_Responder() function refuses to \"eat\" mouse events and these are thus passed over to the G_Responder() function, This, in turn, tries to change weapons in a game that hasn't even started. Boom.\r\n\r\nThe following patch should fix this:\r\n```\r\n--- a/src/heretic/mn_menu.c\r\n+++ b/src/heretic/mn_menu.c\r\n@@ -1083,6 +1083,10 @@ boolean MN_Responder(event_t * event)\r\n         }\r\n     }\r\n \r\n+    if (event->type == ev_mouse)\r\n+    {\r\n+        return true;\r\n+    }\r\n     if (event->type != ev_keydown)\r\n     {\r\n         return false;\r\n```"},"comment":{"url":"https://api.github.com/repos/chocolate-doom/chocolate-doom/issues/comments/69713984","html_url":"https://github.com/chocolate-doom/chocolate-doom/issues/503#issuecomment-69713984","issue_url":"https://api.github.com/repos/chocolate-doom/chocolate-doom/issues/503","id":69713984,"user":{"login":"fabiangreffrath","id":6449237,"avatar_url":"https://avatars.githubusercontent.com/u/6449237?v=3","gravatar_id":"","url":"https://api.github.com/users/fabiangreffrath","html_url":"https://github.com/fabiangreffrath","followers_url":"https://api.github.com/users/fabiangreffrath/followers","following_url":"https://api.github.com/users/fabiangreffrath/following{/other_user}","gists_url":"https://api.github.com/users/fabiangreffrath/gists{/gist_id}","starred_url":"https://api.github.com/users/fabiangreffrath/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fabiangreffrath/subscriptions","organizations_url":"https://api.github.com/users/fabiangreffrath/orgs","repos_url":"https://api.github.com/users/fabiangreffrath/repos","events_url":"https://api.github.com/users/fabiangreffrath/events{/privacy}","received_events_url":"https://api.github.com/users/fabiangreffrath/received_events","type":"User","site_admin":false},"created_at":"2015-01-13T09:02:07Z","updated_at":"2015-01-13T09:02:07Z","body":"> But the second patch is not: It copies code from Doom, which is missing in Heretic and Hexen. If you \r\n> comment out that specific block of code in Doom, it will hang in the menu as well.\r\n\r\nHm?"}}