{"action":"opened","issue":{"url":"https://api.github.com/repos/okamstudio/godot/issues/1766","labels_url":"https://api.github.com/repos/okamstudio/godot/issues/1766/labels{/name}","comments_url":"https://api.github.com/repos/okamstudio/godot/issues/1766/comments","events_url":"https://api.github.com/repos/okamstudio/godot/issues/1766/events","html_url":"https://github.com/okamstudio/godot/issues/1766","id":72031856,"number":1766,"title":"build in input state tracking","user":{"login":"adolson","id":6351421,"avatar_url":"https://avatars.githubusercontent.com/u/6351421?v=3","gravatar_id":"","url":"https://api.github.com/users/adolson","html_url":"https://github.com/adolson","followers_url":"https://api.github.com/users/adolson/followers","following_url":"https://api.github.com/users/adolson/following{/other_user}","gists_url":"https://api.github.com/users/adolson/gists{/gist_id}","starred_url":"https://api.github.com/users/adolson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adolson/subscriptions","organizations_url":"https://api.github.com/users/adolson/orgs","repos_url":"https://api.github.com/users/adolson/repos","events_url":"https://api.github.com/users/adolson/events{/privacy}","received_events_url":"https://api.github.com/users/adolson/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-30T01:19:22Z","updated_at":"2015-04-30T01:19:22Z","closed_at":null,"body":"is_action_pressed() should be able to return an integer corresponding to the input state, without breaking backwards-compatibility. For example, if 0 was NOT_PRESSED, 1 is JUST_PRESSED, 2 is PRESSED, and 3 is JUST_RELEASED. (You'd get the 3 only for one frame I'd imagine, when releasing the button. It shouldn't actually affect anything that is just treating the function as boolean).\r\n\r\n@ndee85 has a GDScript which does something similar to this, but it'd be better if it were built in and standardized."}}