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. 

Ipnut action Esc doesnt work

I have A pause game input action mapping under project settings with P and Esc set as the keys for it.

when testing my game in standalone mode, P pauses the game and brings up the pause menu but Esc does nothing. Even when i change the BP so just the escape key should trigger it and print the string "paused" nothing at all happens.

could my esc key have been disabled somehow?

when using PIE new window Esc still closes the PIE window as expected.

Product Version: UE 4.19
more ▼

asked Jun 02 '18 at 01:02 PM in Blueprint Scripting

avatar image

1 1

avatar image mightyenigma Jun 06 '18 at 04:54 PM

When handling input mappings, many Actors or Objects can handle the same input that's coming in. At any point in the hierarchy, though, one of the objects that is handling the input event can be set to Consume it, which will prevent the event from reaching any objects lower in the hierarchy or processing order.

I'm not sure how it all fits together yet but here are my observations: 1. If any UMG widget has Focus (this is in "Gameplay and UI" inputmode), such as a button, etc., then it will consume the input before it reaches any Playercontrollers. 2. If the input event reaches a player controller, or anything else, you can set the Input Event node to Consume the input, which will prevent the input from reaching the next thing that's been listening for it. 3. You can create Listen For Input event handlers and set them to Consume the input as well.

Check your project for all 3 of these in regards to both the Escape key and all the axis and action mapping names that use the Escape key.

Also, I think that only player controller 0 receives input from the keyboard. I think controllers 1,2, and 3 ignore it. Not sure but I think so.

Sometimes inputs don't work when you're running the game from the editor instead of from a built deployment. First try just task switching away from the running game and then back into it like with Alt-Tab. Also try running in Stand Alone mode, and try building your project to an executable and see if the gamepad works there.

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

0 answers: sort voted first
Be the first one to answer this question
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