Jump to content

Recommended Posts

Posted

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.

Posted

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.

Posted

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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

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...