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"

Why does the touchpad on Gear VR fire multiple release events?

UE4 version 4.7.2 binary.

For some reason I am getting three Touch Released events for ever single Touch Pressed on the Gear VR touchpad, as well as a mouse button UP.

Additionally, the Gear VR BACK button is firing an Android Back as well as two Touch Released.

Frustrating because it seems hard to filter out. The Finger Index for all these touches is the same -- Touch1.

In both of the instances below I am simply pressing the touchpad once and releasing, then pushing the back button once and releasing.

Logcat output of a touchpad press:

 D/InputReader(  978): Input event: value=1
 I/InputDispatcher(  978): Delivering touch to (18247): action: 0x0, toolType: 3
 D/lights  (  978): button : 1 +
 D/lights  (  978): button : 1 -
 D/UE4     (18247): [2015.03.12-03.55.58:622][  0]LogBlueprintUserMessages: TOUCH PRESSED Touch1 X=766.401 Y=486.324 Z=1.000
 D/InputReader(  978): Input event: value=0
 I/InputReader(  978): Mouse button UP numMappers=1, count=1
 I/InputDispatcher(  978): Delivering touch to (18247): action: 0x1, toolType: 3
 I/InputDispatcher(  978): Delivering touch to (18247): action: 0x9, toolType: 3
 D/UE4     (18247): [2015.03.12-03.55.58:689][  0]LogBlueprintUserMessages: TOUCH RELEASED Touch1 X=766.401 Y=486.324 Z=0.000
 D/UE4     (18247): [2015.03.12-03.55.58:690][  0]LogBlueprintUserMessages: TOUCH RELEASED Touch1 X=766.401 Y=486.324 Z=0.000
 D/UE4     (18247): [2015.03.12-03.55.58:690][  0]LogBlueprintUserMessages: TOUCH RELEASED Touch1 X=766.401 Y=486.324 Z=0.000

Logcat of the BACK button being pressed:

 D/InputReader(  978): Input event: value=1
 D/PersonaManagerService(  978):  handle back called for user 0 back true
 I/InputDispatcher(  978): Delivering key to (18247): action: 0x0 (0)
 D/UE4     (18247): Received keycode: 4
 D/UE4     (18247): Received key event: 4
 D/UE4     (18247): [2015.03.12-03.56.01:894][  0]LogBlueprintUserMessages: ANDROID BACK
 D/UE4     (18247): [2015.03.12-03.56.01:910][  0]LogBlueprintUserMessages: TOUCH RELEASED Touch1 X=639.500 Y=359.500 Z=0.000
 D/InputReader(  978): Input event: value=0
 D/InputDispatcher(  978): Waiting for application to become ready for input: xxxx Reason: Waiting because the focused window has not finished processing the input events that were previously delivered to it.
 I/InputDispatcher(  978): Delivering key to (18247): action: 0x1 (0)
 D/UE4     (18247): [2015.03.12-03.56.02:012][  0]LogBlueprintUserMessages: TOUCH RELEASED Touch1 X=639.500 Y=359.500 Z=0.000
 D/UE4     (18247): Received keycode: 4
 D/UE4     (18247): Received key event: 4

My blueprint is nothing special. This is what I'm currently using, attached to the level blueprint:

alt text

Product Version: Not Selected
Tags:
more ▼

asked Mar 12 '15 at 04:23 AM in VR

avatar image

sinoth
82 13 13 13

avatar image DFin Apr 13 '15 at 10:48 AM

I can confirm that this still is an issue with Unreal 4.7.5

avatar image HEGI Oct 08 '15 at 10:39 PM

This is still an issue in 4.9 ! Will this be fixed in 4.10 ? Since the GearVR customer release is approaching, it would be nice if this works as expected.

avatar image devel.bmad Oct 14 '15 at 12:08 PM

Same problem. Any workaround?

avatar image Art_Oculus Nov 05 '15 at 01:20 AM

Have you tried the fix posted in this thread?

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

2 answers: sort voted first

Hey guys, Trying to repro the issue (and hopefully fix it) but how did you manage to make PrintString to work on Android? It doesn't seem to do anything for me.

more ▼

answered Nov 01 '15 at 09:29 PM

avatar image

Art_Oculus
191 2 5 15

avatar image sinoth Nov 01 '15 at 09:47 PM

I connected adb wirelessly to the phone and ran logcat from the PC.

avatar image Art_Oculus Nov 02 '15 at 12:08 AM

Yeah, I know, but for some reasons I don't see anything what PrintString is trying to print out. I see them if I run on PC, but not on the phone (I see perfectly fine all other UE4 messages in logcat)

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

At the moment, I can offer the following hot-fix. Need to modify source code and build UE4. File Engine\Source\Runtime\Launch\Private\Android\LaunchAndroid.cpp, method "static int32_t HandleInputCB(struct android_app* app, AInputEvent* event)". Find the following 'switch' statement and add two lines with the 'default' case:

                 switch (actionType)
                 {
                 case AMOTION_EVENT_ACTION_DOWN:
                 case AMOTION_EVENT_ACTION_POINTER_DOWN:
                     type = TouchBegan;
                     break;
                 case AMOTION_EVENT_ACTION_MOVE:
                     type = TouchMoved;
                     break;
                 case AMOTION_EVENT_ACTION_UP:
                 case AMOTION_EVENT_ACTION_POINTER_UP:
                 case AMOTION_EVENT_ACTION_CANCEL:
                 case AMOTION_EVENT_ACTION_OUTSIDE:
                     type = TouchEnded;
                     break;
     
                 default:             // << ADD THESE LINES
                     return 0;   // << ADD THESE LINES
                 }
     


This is not final fix, but let me know if it works.

more ▼

answered Nov 02 '15 at 09:23 AM

avatar image

Art_Oculus
191 2 5 15

avatar image Art_Oculus Nov 03 '15 at 02:46 AM

FYI: Chris Babcock from Epic has integrated this into 4.10, github: https://github.com/EpicGames/UnrealEngine/commit/a145f2ea578bb676426560914bf5ddc2be6e8fe7

avatar image sinoth Nov 05 '15 at 02:40 AM

Sorry but I'm not currently in a good position to test this. If someone will confirm that it works, I will mark this answer accepted.

(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