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 to enable On Touch Moved only on part of the screen? (I'm working on a "touchpad" input)

Hello :)

I'm working on touchpad for my game to control character Yaw and Pitch Inputs. At this moment I can touch and rotate, but when finger goes outside the region my axis walue don't want to be zero. How to enable On Touch Moved only on the part of a screen or create event after touch goes outside this area?

Here's how my On Touch Moved: alt text

Product Version: Not Selected
Tags:
touch.png (268.8 kB)
more ▼

asked Apr 16 '15 at 08:55 PM in Blueprint Scripting

avatar image

A_Sobieraj
76 14 19 19

avatar image A_Sobieraj Apr 17 '15 at 10:56 PM

bump, I'm still working on this :(

avatar image A_Sobieraj Apr 17 '15 at 11:41 PM

Here's my actual version, as you can see touch event is working only on a part of a screen.

alt text

Problem is when i stop moving my finger on this area (but still touching) - axis are not changing to x0.0 y0.0.( I think because "get last screen position" isn't fast enough) It's why I'm trying to change by breaking Vector2d and testing with "Nearly equal" but going this way I'm making my whole touchpad not enough precise.

Any advices?

touch2.png (227.7 kB)
(comments are locked)
10|2000 characters needed characters left

0 answers: sort voted first
Be the first one to answer this question
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