Working Swipe + Touch

Hello fellow unreal enthusiasts!

I just finished swipe and tap controls for my game, and notice there wasn’t to much info on it. I did find Shane Caudle awesome bit of blueprint code for adding swipe

.

I modified it a bit , added support for tapping and made it trigger on release instead of distance

.
You might want to remove the string prints as they are there for debugging while I continue to create my game :slight_smile:

Also would like to add something I missed while doing this is, don’t forget to change in your controller/blueprint under “Input” -> “Auto Receive Input” to “Player 0”. Otherwise the Touch input isn’t going to trigger.

I hope this helps someone, or someone just finds it interesting.

1 Like

This is super nice, Timotii48. I was actually going to write something similar to this myself for touch gestures, but looks like you beat me to it :slight_smile:

Thanks!

i can’t enlarge attached images !!

The images are already pretty huge…