{"action":"created","issue":{"url":"https://api.github.com/repos/underscorediscovery/luxe/issues/276","labels_url":"https://api.github.com/repos/underscorediscovery/luxe/issues/276/labels{/name}","comments_url":"https://api.github.com/repos/underscorediscovery/luxe/issues/276/comments","events_url":"https://api.github.com/repos/underscorediscovery/luxe/issues/276/events","html_url":"https://github.com/underscorediscovery/luxe/issues/276","id":80460470,"number":276,"title":"Have on*pressed() functions for classes like Entity, Component","user":{"login":"Aleph0Null","id":11797752,"avatar_url":"https://avatars.githubusercontent.com/u/11797752?v=3","gravatar_id":"","url":"https://api.github.com/users/Aleph0Null","html_url":"https://github.com/Aleph0Null","followers_url":"https://api.github.com/users/Aleph0Null/followers","following_url":"https://api.github.com/users/Aleph0Null/following{/other_user}","gists_url":"https://api.github.com/users/Aleph0Null/gists{/gist_id}","starred_url":"https://api.github.com/users/Aleph0Null/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Aleph0Null/subscriptions","organizations_url":"https://api.github.com/users/Aleph0Null/orgs","repos_url":"https://api.github.com/users/Aleph0Null/repos","events_url":"https://api.github.com/users/Aleph0Null/events{/privacy}","received_events_url":"https://api.github.com/users/Aleph0Null/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-05-25T09:10:24Z","updated_at":"2015-05-26T19:17:52Z","closed_at":"2015-05-25T17:00:58Z","body":"Currently I'm doing `if (Luxe.input.*pressed('...'))` inside `on*down()`, having on*pressed() would save lots of function calls. Maybe have interfaces for the common event slot functions to ensure they're present where they can be used.\r\n\r\n(Guess this is probably on the to-do list? But putting it here anyways.)\r\n\r\nEdit: And maybe rename the `on*up()` functions to `on*released()`, to make them consistent with `Luxe.input`. Adjectives (down, up) refer to the current state of the input medium, while past tense (pressed, released) refer to the prior state."},"comment":{"url":"https://api.github.com/repos/underscorediscovery/luxe/issues/comments/105639478","html_url":"https://github.com/underscorediscovery/luxe/issues/276#issuecomment-105639478","issue_url":"https://api.github.com/repos/underscorediscovery/luxe/issues/276","id":105639478,"user":{"login":"underscorediscovery","id":236374,"avatar_url":"https://avatars.githubusercontent.com/u/236374?v=3","gravatar_id":"","url":"https://api.github.com/users/underscorediscovery","html_url":"https://github.com/underscorediscovery","followers_url":"https://api.github.com/users/underscorediscovery/followers","following_url":"https://api.github.com/users/underscorediscovery/following{/other_user}","gists_url":"https://api.github.com/users/underscorediscovery/gists{/gist_id}","starred_url":"https://api.github.com/users/underscorediscovery/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/underscorediscovery/subscriptions","organizations_url":"https://api.github.com/users/underscorediscovery/orgs","repos_url":"https://api.github.com/users/underscorediscovery/repos","events_url":"https://api.github.com/users/underscorediscovery/events{/privacy}","received_events_url":"https://api.github.com/users/underscorediscovery/received_events","type":"User","site_admin":false},"created_at":"2015-05-26T19:17:52Z","updated_at":"2015-05-26T19:17:52Z","body":"No worries, I try to be aware of that constantly, but the edge goes both ways, if you explain \"obvious\" things it's also demotivating (as is not explaining when needed).\r\n\r\nIn general all these types of detail and reasoning _will_ be documented out in guide form, and will cover the whole base line of why too (the \"design\" links on the home page of the docs alludes to this) but as with much of the alpha status, these things are a work in progress and don't exist yet as a side effect of time.\r\n\r\nThere was a guide [here](http://luxeengine.com/docs/guide.input.html) which was outdated - but i've updated it now and will add more information in future."}}