Jump to content
Rick

Key down

Recommended Posts

So the Script has a callback for KeyDown and KeyUp. What is that doing internally and is there a polling way to check this or some way I can check this outside of a Script callback? I have my own Lua class and need to check for a key down and hoping to avoid looping over all the keys to check this if possible.

Share this post


Link to post

You mean like the "Window:KeyDown()" function?

If your window variable is global (which it is by default in the main.lua file) you can just call "window:KeyDown()" anywhere in the script.

Share this post


Link to post

I mean telling me what key was down vs me going through them all like I have to do with KeyDown. A KeyPress function that returns the key code if one was pressed would be nice.

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

ร—
ร—
  • Create New...