x

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 to detect if any key has been pressed down in UMG?

Hello Everyone,

How do I put an action that is triggered when any key Has Been pressed down on umg?

Product Version: Not Selected
Tags:
more ▼

asked Feb 03 '15 at 08:02 PM in Blueprint Scripting

avatar image

Humberto
126 17 16 23

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

2 answers: sort voted first

There is no Event in UMG for key being pressed, your best bet is to set up the event in the player controller and forward it to UMG.

If you want to set up your own event in UMG, there is a node you can use to check if the key is pressed at that point in time. Get Owning Player > Is Input Key Down.

Hope this helps :)

more ▼

answered Feb 03 '15 at 08:09 PM

avatar image

Justin.Dooley
2.1k 104 72 163

avatar image Humberto Feb 03 '15 at 08:13 PM

thx mate ç.ç

avatar image DevilEye Sep 08 '15 at 04:55 AM

Thanks Justin, this info helped me a lot :)

avatar image Doublezer0 Sep 10 '15 at 10:34 AM

You can over-ride the "On Key Down" function in a UMG blueprint by going to graph mode and selecting from the over-ride functions list.

avatar image Plosnita Jun 21 '16 at 02:39 PM

You need to have keyboard focus on the widget, not always ideal

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

answered Jun 21 '16 at 02:39 PM

avatar image

Plosnita
277 5 8 22

(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