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 use blueprints to map Cardboard v2.0 capacitive touch button as input?

I'm making a mobile VR project where the user can look around and, when they want to walk forward, be able to press the Cardboard v2.0 button on their mobile VR headset to do so. I'm not sure how to go about this. I want to make the capacitive touch button on my Homido V2 headset make the player walk forward when pressed once, and stop walking when pressed again. It is my understanding, although I may be wrong, that capacitive touch is similar to "3D Touch" on the iPhone (pressure-sensitive). How would I go about programming this in Blueprints? (I'm doing this project as "Blueprints only," because I have no knowledge of C++, and I'm more of a visual person)

Thanks in advance.

Product Version: UE 4.15
Tags:
more ▼

asked Mar 24 '17 at 03:25 AM in Blueprint Scripting

avatar image

T-MAX_X-H
15 3 3 7

avatar image T-MAX_X-H Apr 12 '17 at 03:31 AM

It's starting to get close to crunch time for my project. Anyone have any ideas at all?

(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

Hi there!

The action mapping you are looking for is called Touch 1

You can create those mappings under Project Settings > Input > Bindings

I highly recommend this video for more detailed instructions about what you want to achieve:

LINK

The whole VR tutorial series by strigifo is very useful - also got me startet with my cardboard project. ;)

more ▼

answered May 02 '17 at 09:34 PM

avatar image

mexic0la
31 1 2 2

avatar image T-MAX_X-H May 03 '17 at 03:19 AM

Thank you mexic0la for your response! I have been experimenting with that, and today, I finally got the VR tour app I'm working on to deploy to my iPhone AND launch successfully. The Touch 1 works! Now if only I can get Touch 1 to make the viewer walk when pressed once and then make them stop when pressed again... Would you have any ideas on how to do that?

avatar image mexic0la May 03 '17 at 09:22 AM

Great that it worked for you!

You should totally check out the video in the link from my last post. Its about building a veery similar movement system. Here a screenshot from the tutorial:

alt text

In this case the movementspeed is set/increased in a variable when the Touch input is pressed and set again, now back to zero, when released.

For your goal you could use a flipflop node after the input pressed and connect both set nodes to it i think.

I'm very new to the engine as well, so don't be mad at me, if iI'm guessing wrong. ;)

Good luck!

movement system.jpg (217.9 kB)
avatar image mexic0la May 03 '17 at 09:27 AM

Ah and I think, now that the main question is answered you can mark this thread as resolved somehow. ;)

(comments are locked)
10|2000 characters needed characters left
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