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"

How can we setup a BP to detect when a user presses the back or menu button on Android?

How to do we detect when a user presses the back or menu button on their android phone?

Product Version: Not Selected
Tags:
more ▼

asked Apr 11 '14 at 01:48 AM in Blueprint Scripting

avatar image

pzea
71 8 10 16

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

3 answers: sort voted first

In Android those buttons (this include all buttons that phone and tablet can have, like VolUp, VolDown) are visible as keyboard buttons even if they are virtual, If engine don't forward them with there APIs (and Blueprint) you might find something in Android NDK which means dealing with C++.

Normally you should add action stacks in order for utilize Back button on your own (by default it all automatic) but it seems UE4 already avoid this need and back button does nothing by default, Back button might be registered as Backspace or Escape keyboard presses you could try that.

You also should avoid using menu button as Android guidelines recommands, it's supposed to be not used anymore since Android 3.0 and you can still see because of application legecy support

more ▼

answered Apr 11 '14 at 03:24 AM

avatar image

Shadowriver
36.6k 932 169 1111

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

Back button now supported in UE 4.4 preview which you can download already in the launcher :) https://forums.unrealengine.com/showthread.php?25513-Unreal-Engine-4-4-Preview-Notes&p=109440#post109440

The bad news it doesn't quit the app :/ Anyone found a solution for this??

more ▼

answered Aug 01 '14 at 08:26 PM

avatar image

aussieburger
1.5k 43 176 75

avatar image Nefusadi Aug 29 '14 at 07:41 PM

As of UE 4.4.1 (at least) you can now just call the "Quit Game" function from the back button input to cause the game to quit.

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

Android back node has a problems on cell phones with one button. You need to press 4-6 attempts on Meizu to run Android back. Please fix this error I waiting almost a year to get things done.

more ▼

answered Sep 18 '17 at 09:36 PM

avatar image

Xaser3D
91 2 7 8

(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