Jump to content

Keyboard Input (signals are useful)


BastardCode
 Share

Recommended Posts

I dug deep into docs and source, realized signals have an .add method

Keys have an onUp and onDown signal, which again, in turn, has an add method.

 

What I couldn't figure out was if there is a more general way of handling keyboard input?

 

Does the keyboard itself have signals for onUp / onDown?

Can I run a general callback, something like  :nextTurn()" each time ANY key is pressed?

 

What if I just wanted to implement a "hit ANY key to start" function?

 

Not looking for code so much as a pointer in the right direction. 

Link to comment
Share on other sites

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.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...