Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
http://steamcommunity.com/app/358720/discussions/0/487876568222540886/
and
http://steamcommunity.com/app/358720/discussions/0/487876568226759993/
Because the pad is touch-sensitive, it is constantly reporting it's touch location (without clicking it down) via:
I believe the touchpad's current touch coordinates are stored in Axis1 (experiment if it doesn't seem right), so the very top left corner of Axis1 would be x: -1, y: -1. This isn't particularly useful as nobody will ever hit the exact top left of the pad; you'll have to write some code to determine what is "close enough". (if I press down just a smidge to the top left of exact center, does that count?)
The intended use cases for controller joysticks and touch quadrants are typically very different from use case to use case, so the engines leave it up to you to code it in a way that makes sense. There are some libraries in the Unity Asset Store that sorta deal with this, such as InControl, but you still have to configure it yourself (and map all the InControl wires to SteamVR which might be too much effort for you).
I recommend writing your own system for practice though.
To detect pushing down on the button, similarly just poll for:
Perhaps you can store the X,Y coordinates of the touchpads' current position into an array w/timestamps, and you can compare the last second to see if the touch is trending in a particular direction? There is no built-in "swipe" detection.
The above is largely pseudocode, so I hope it sets you on the right path. Your questions are bordering on the 'how do I code' sorta thing that is a lot more difficult to help with, and might be better/more quickly answered in the Unity forums. Or use your google-fu; here's a quicks earch for swipe detection:
http://answers.unity3d.com/questions/600148/detect-swipe-in-four-directions-android.html
or:
https://pfonseca.com/swipe-detection-on-unity
https://github.com/omerfaruk/htc-vive-swipe