Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

How do you add an event to be fired with any key input?

I want to do an action with when you press any key, and I'm trying to avoid assigning each key one by one. If there's the input "none", is there an "any" input? Or maybe a NOT "none" or something like that

Product Version: Not Selected
more ▼

asked Apr 29 '14 at 10:53 PM in Blueprint Scripting

avatar image

66 2 3 6

avatar image melkior May 21 '14 at 03:59 AM

I'm new to UE4 also and doing some key press stuff right now and saw your question. I also don't see a way to do this in blueprint

in C++ you might potentially use EKeys function GetAllKeys( TArray < FKey > &) and as long as the array had any value in it then you would be okay but I do not see this exposed in blueprint?


In the meantime though there's always the approach of making it a specific key (i.e "Tap the spacebar to continue"). This also avoids the issue of having to map all the keys and makes your task achieveable for now until you get the information you need.

avatar image spyro Sep 25 '14 at 02:08 AM

I would really be great if there was an AnyKey-Event. I want to recenter the view in VR when the user presses a key the first time to dismiss the health & safety warning, regardless what key this might be.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

3 answers: sort voted first

"Any Key" event now availble.

more ▼

answered Dec 30 '15 at 05:05 PM

avatar image

144 7 15 24

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

Yeah you can simply right-click -> input -> keyboard events -> scroll down to any key".

more ▼

answered Dec 30 '15 at 05:39 PM

avatar image

63 6 4 7

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

Unfortunately, there's no way of achieving this via a blueprint at the moment. One (clumsy) solution is to use key press events, disable the "consume" option and connect them to the same output and collapsing all of them as a node. It ain't pretty but it gets the job done.

more ▼

answered May 21 '14 at 11:08 AM

avatar image

2k 62 24 111

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question