Jump to content

Difference between IsKeyDown/IsKeyDownRightNow and IsControllerButtonDown/IsControllerButtonDownRightNow

Recommended Posts

IsKeyDown basically reports the status since the last check, i.e. when the key is being held down and you call this function in a loop, it will only enter the conditional branch once (the first time). IsKeyDownRightNow however, reports the actual key state, that is whether the key is being held down right now.

Share this post

Link to post
Share on other sites

Got it. That makes sense, I just wasn't sure which was which. IMO the naming is really unintuitive. Is there any way to contribute edits to the RPH documentation? It would be some enough to describe what you just said in the docs to clear it up for future developers. 

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now