{"action":"created","issue":{"url":"https://api.github.com/repos/godotengine/godot/issues/6135","repository_url":"https://api.github.com/repos/godotengine/godot","labels_url":"https://api.github.com/repos/godotengine/godot/issues/6135/labels{/name}","comments_url":"https://api.github.com/repos/godotengine/godot/issues/6135/comments","events_url":"https://api.github.com/repos/godotengine/godot/issues/6135/events","html_url":"https://github.com/godotengine/godot/issues/6135","id":170937647,"number":6135,"title":"Input.action_press() and input.action_release() do nothing","user":{"login":"GalanCM","id":5281342,"avatar_url":"https://avatars.githubusercontent.com/u/5281342?v=3","gravatar_id":"","url":"https://api.github.com/users/GalanCM","html_url":"https://github.com/GalanCM","followers_url":"https://api.github.com/users/GalanCM/followers","following_url":"https://api.github.com/users/GalanCM/following{/other_user}","gists_url":"https://api.github.com/users/GalanCM/gists{/gist_id}","starred_url":"https://api.github.com/users/GalanCM/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GalanCM/subscriptions","organizations_url":"https://api.github.com/users/GalanCM/orgs","repos_url":"https://api.github.com/users/GalanCM/repos","events_url":"https://api.github.com/users/GalanCM/events{/privacy}","received_events_url":"https://api.github.com/users/GalanCM/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-12T19:02:39Z","updated_at":"2016-08-13T04:01:03Z","closed_at":null,"body":"Mac OS X 10.11.6\r\nGodot 2.1\r\n\r\nInput.action_press() and Input.action_release() don't seem to do anything.\r\n\r\nAfter a good chunk of trial and error I've simplified the code down to the following, attached to a global:\r\n\r\n```gdscript\r\n\r\nextends Node\r\n\r\nfunc _ready():\r\n\tset_process_input(true)\r\n\tprint('trigger ui_accept')\r\n\tInput.action_press(\"ui_accept\")\r\n\t\r\nfunc _input(event):\r\n\tif event.is_action_pressed(\"ui_accept\"):\r\n\t\tprint('ui_accepted')\r\n```\r\n\r\nWhich prints out:\r\n```\r\ntrigger ui_accept\r\n```"},"comment":{"url":"https://api.github.com/repos/godotengine/godot/issues/comments/239600514","html_url":"https://github.com/godotengine/godot/issues/6135#issuecomment-239600514","issue_url":"https://api.github.com/repos/godotengine/godot/issues/6135","id":239600514,"user":{"login":"GalanCM","id":5281342,"avatar_url":"https://avatars.githubusercontent.com/u/5281342?v=3","gravatar_id":"","url":"https://api.github.com/users/GalanCM","html_url":"https://github.com/GalanCM","followers_url":"https://api.github.com/users/GalanCM/followers","following_url":"https://api.github.com/users/GalanCM/following{/other_user}","gists_url":"https://api.github.com/users/GalanCM/gists{/gist_id}","starred_url":"https://api.github.com/users/GalanCM/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GalanCM/subscriptions","organizations_url":"https://api.github.com/users/GalanCM/orgs","repos_url":"https://api.github.com/users/GalanCM/repos","events_url":"https://api.github.com/users/GalanCM/events{/privacy}","received_events_url":"https://api.github.com/users/GalanCM/received_events","type":"User","site_admin":false},"created_at":"2016-08-13T04:01:03Z","updated_at":"2016-08-13T04:01:03Z","body":"Ah, thanks. I never would have guessed that's how they worked. In fact, I'd assumed that changing the Input singleton would fire off an InputEvent."}}
{"actor":{"display_login":"GalanCM"}}