{"action":"created","issue":{"url":"https://api.github.com/repos/godotengine/godot/issues/3340","repository_url":"https://api.github.com/repos/godotengine/godot","labels_url":"https://api.github.com/repos/godotengine/godot/issues/3340/labels{/name}","comments_url":"https://api.github.com/repos/godotengine/godot/issues/3340/comments","events_url":"https://api.github.com/repos/godotengine/godot/issues/3340/events","html_url":"https://github.com/godotengine/godot/issues/3340","id":126476211,"number":3340,"title":"Wheel Up and Wheel Down \"buttons\" apparently not working in InputMap","user":{"login":"akien-mga","id":4701338,"avatar_url":"https://avatars.githubusercontent.com/u/4701338?v=3","gravatar_id":"","url":"https://api.github.com/users/akien-mga","html_url":"https://github.com/akien-mga","followers_url":"https://api.github.com/users/akien-mga/followers","following_url":"https://api.github.com/users/akien-mga/following{/other_user}","gists_url":"https://api.github.com/users/akien-mga/gists{/gist_id}","starred_url":"https://api.github.com/users/akien-mga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akien-mga/subscriptions","organizations_url":"https://api.github.com/users/akien-mga/orgs","repos_url":"https://api.github.com/users/akien-mga/repos","events_url":"https://api.github.com/users/akien-mga/events{/privacy}","received_events_url":"https://api.github.com/users/akien-mga/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/godotengine/godot/labels/bug","name":"bug","color":"ff2222"},{"url":"https://api.github.com/repos/godotengine/godot/labels/topic:core","name":"topic:core","color":"ffdd44"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-01-13T17:56:13Z","updated_at":"2016-09-29T16:47:54Z","closed_at":"2016-09-29T16:47:54Z","body":"After some debugging on IRC with @samuncle, it appears mouse wheel scroll events can't be used via the InputMap. It's possible to assign the \"Wheel Up Button\" and \"Wheel Down Button\" of a mouse to actions, but they don't seem to be triggered when scrolling the wheel.\r\nOn the other hand polling for mouse wheel events works just fine.\r\n\r\n**This works:**\r\n```\r\nfunc _input(event):\r\n\tif event.type == InputEvent.MOUSE_BUTTON:\r\n\t\tif event.button_index == BUTTON_WHEEL_UP:\r\n\t\t\tprint(\"wheel up (event)\")\r\n\t\tif event.button_index == BUTTON_WHEEL_DOWN:\r\n\t\t\tprint(\"wheel down (event)\")\r\n\r\nfunc _ready():\r\n\tset_process_input(true)\r\n```\r\n\r\n**This does not work:**\r\n\r\n![script1](https://cloud.githubusercontent.com/assets/4701338/12302758/2b3337d8-ba27-11e5-871b-a1058bb548a3.png)\r\n```\r\nfunc _fixed_process(delta):\r\n\tif Input.is_action_pressed(\"wheel_up\"):\r\n\t\tprint(\"wheel up (action)\")\r\n\tif Input.is_action_pressed(\"wheel_down\"):\r\n\t\tprint(\"wheel down (action)\")\r\n\r\nfunc _ready():\r\n\tset_fixed_process(true)\r\n```\r\n\r\nDo we misunderstand the meaning of the \"Wheel Up\" and \"Wheel Down\" mouse \"buttons\" in the InputMap, or are those non-working?\r\n\r\nTested on Linux 64-bit, current master branch."},"comment":{"url":"https://api.github.com/repos/godotengine/godot/issues/comments/250524360","html_url":"https://github.com/godotengine/godot/issues/3340#issuecomment-250524360","issue_url":"https://api.github.com/repos/godotengine/godot/issues/3340","id":250524360,"user":{"login":"eska014","id":6996191,"avatar_url":"https://avatars.githubusercontent.com/u/6996191?v=3","gravatar_id":"","url":"https://api.github.com/users/eska014","html_url":"https://github.com/eska014","followers_url":"https://api.github.com/users/eska014/followers","following_url":"https://api.github.com/users/eska014/following{/other_user}","gists_url":"https://api.github.com/users/eska014/gists{/gist_id}","starred_url":"https://api.github.com/users/eska014/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eska014/subscriptions","organizations_url":"https://api.github.com/users/eska014/orgs","repos_url":"https://api.github.com/users/eska014/repos","events_url":"https://api.github.com/users/eska014/events{/privacy}","received_events_url":"https://api.github.com/users/eska014/received_events","type":"User","site_admin":false},"created_at":"2016-09-29T16:47:54Z","updated_at":"2016-09-29T16:47:54Z","body":"Closing as not an issue.\r\nIf anyone having issues with this finds their way here, check my comments above for explanation"}}
{"actor":{"display_login":"eska014"}}