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 get dpad key in widget On Key Down/Up?

I'm trying to read the gamepad and keyboard input to switch between some ui inside a widget, the issue i'm having is inside the widget override on key down/up i can read all input except gamepad dpad, and A(on xbox controller) , also on keyboard the arrow keys, spacebar and enter keys.

Am i doing something wrong? is input absorbed by ue4 navigation?

Steps: 1. create widget, add to viewport, set gameinput mode ui only. 2. Focus the first button inside a vertical box

this is a simple test im running inside the widget to print the keys

alt text

Product Version: UE 4.18
key.png (295.3 kB)
more ▼

asked Jan 17 '18 at 05:21 PM in Blueprint Scripting

avatar image

6 2 2

avatar image HighlandScotch May 08 '18 at 11:57 PM

Did you figure this out? I'm in a similar situation, I can't get any input from the Xbox controller in my widget.

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

1 answer: sort voted first

Following up on my earlier comment I found a solution. Instead of using On Key Down do the following:

  1. In your widget set input mode to Game And UI (this does not work with input mode UI Only)

  2. Create an Input Action Mapping in project settings to handle gamepad input from the D-pad

  3. In your widget call Listen For Input Action (this does not work with Axis mappings)

  4. From Listen for Input Action wire the Callback to a custom event that then handles the input

I'm using version 4.18, hopefully later versions will support axis mappings and support input mode UI Only. This video explains it well: https://youtu.be/4FwaHM6YSF8

more ▼

answered May 09 '18 at 12:54 AM

avatar image

23 1 2 6

avatar image FractalDragon May 09 '18 at 05:07 AM

i found out that ue4 in input mode ui only the navigation absorbs some input ie. like the keyboard enter or the arrow keys and game pad arrows and face button down, but after fiddling around, i found out that i had some issue with the ui elements hierarchy, and there is also a interaction category in those elements with the is focusable, had that turned off. I also tried to do the navigation to a specific element instead of the escape option, this helped me too.

(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