Use Mouse For Touch Breaks Touch/Swipe Input Order

I’m binding touch events like this. They work as expected. However if I enable “Use Mouse For Touch” in my project input settings. EGameKey::Swipe gets fired before EGameKey::Tap (IE_Pressed).

BIND_1P_ACTION(InputHandler, EGameKey::Tap, IE_Pressed, &AElementalPlayerController::OnTapPressed);
	BIND_1P_ACTION(InputHandler, EGameKey::Hold, IE_Pressed, &AElementalPlayerController::OnHoldPressed);
	BIND_1P_ACTION(InputHandler, EGameKey::Hold, IE_Released, &AElementalPlayerController::OnHoldReleased);
	BIND_1P_ACTION(InputHandler, EGameKey::Swipe, IE_Pressed, &AElementalPlayerController::OnSwipeStarted);
	BIND_1P_ACTION(InputHandler, EGameKey::Swipe, IE_Repeat, &AElementalPlayerController::OnSwipeUpdate);
	BIND_1P_ACTION(InputHandler, EGameKey::Swipe, IE_Released, &AElementalPlayerController::OnSwipeReleased);

Howdy DannRees,

Thank you for reporting this issue that you have been seeing. Would you be able to attach your project log files and your Dxdiag to this post? Also, Would you be able to provide a step by step reproduction so that I may be able to see this issue occur internally?

Any additional information would be greatly appreciated.

Thanks and have a great day!

Hey DannRees,

Just wanted to check in with you and see if the issue you have been seeing is still occurring. If so, could you please attach the information asked for in the above comment.

Thanks and have a great day!

Hey there, sorry I’ve been super busy lately.

I’ve used the code from the Strategy game to detect touch and swipe input.I implemented this a fair few months back and it has always worked fine.

However now it “appears” that swipe is being called before tap. It occurs in the editor if “use mouse for touch” is enabled. And always occurs on a mobile device (Galaxy S5).

Though I suspect it may not be that swipe is being called first, but perhaps that the minimum swipe distance is too low? It does pick up on very very slight movement?

Also, I’m working on getting those files to you now. Can you please confirm the location of the log file you need? The most recent in /Saved/Logs ?

link text

hey DannRees,

You are correct. That is the location of the logs that I would need.

Thanks!

link text

Hey DannRees,

I went ahead and placed Strategy Game on an S5 and I was unable to notice any significant errors with the device. Would there be anything in a blueprint that I may need to change? Swiping was very smooth and did not feel awkward.

Thanks and have a great day!

Howdy DannRess,

Just wanted to check in with and see if the issue is still occurring for you. please be sure to let me know when ever you get the chance.

Thanks and have a great day!

Hi,

The problem still occurs unfortunately. I’ve implemented a workaround for now.

I re-installed the latest Strategy Game example and as you said, it seems fine.Though the code I pulled was from an old version.

No idea why it’s happening :frowning:

Hey DannRess,

I wanted to check with you and see if it would be ok to resolve this issue since a workaround has been found. please be sure to let me know.

Thanks and have a great day!

Hi DannRees,

We have not heard back from you in a few days, so we are marking this post as Resolved for tracking purposes. If you are still experiencing the issue you reported, please respond to this message with additional information and we will offer further assistance.

Thank you.