当前位置:网站首页>Preliminary controller input of oculus learning notes (1)
Preliminary controller input of oculus learning notes (1)
2022-06-22 18:29:00 【Tomato ape】
Oculus We can control the input of the handle from OVRInput In this static class ,OVRInput Enumeration types with multiple buttons in , We can quickly find the corresponding input control by enumerating values .
OVRInput There are mainly the following categories :
1. Controller Controller enumeration , Supported input devices :
• LTouch:Oculus Left of Touch controller , It's virtual so that Touch distinguish
• RTouch:Oculus The right side of Touch controller
• Touch: Oculus The controller , Including left and right Touch controller
• Remote: Oculus Of Remote controller ( Small remote control )
• Gamepad: Include Xbox 360、Xbox one, Or an ordinary Android handle
• Touchpad: GearVR Of TouchPad( Android )
• Active:
• All
2. Button Input of each button , Corresponding Oculus Of Touch The buttons mainly include :
• One: Corresponding A key
• Two: Corresponding B key
• Three: Corresponding C key
• Four: Corresponding D key
• Start: Corresponding to the start key of the left hand handle
• Back: No corresponding
• PrimaryShoulder: No corresponding
• PrimaryIndexTrigger: The index finger button corresponding to the left hand handle
• PrimaryHandTrigger : It corresponds to the middle finger of the left hand handle 、 Ring finger button
• PrimaryThumbstick: The button corresponding to the left hand handle rocker ( The rocker can be pressed )
• PrimaryThumbstickUp: Push the rocker of the left hand handle upward
• PrimaryThumbstickDown: Push down the rocker of the left hand handle
• PrimaryThumbstickLeft: Push the left handle rocker to the left
• PrimaryThumbstickRight: Push the left hand handle rocker to the right
• SecondaryShoulder: Right hand handle , Same as left hand
……
3. RawButton What I understand is native buttons , But I don't quite understand and Button What's the difference? , Because the buttons are basically the same , Comments are written that can be used to directly query the state of the controller
4. Touch Mainly Touch Various touch inputs , Note that touch input is included in the press operation , in other words , When the button is pressed , Touch events are still being triggered , The corresponding relationship is basically the same as Button:
• One:
• Two
• Three
• Four
• PrimaryIndexTrigger
• PrimaryThumbstick
• PrimaryThumbRest: This is the lighter circle on the handle , For the thumb rest area , This event is triggered when the finger is placed on it
• Secondary……
5. RawTouch
6. NearTouch Mainly when the finger is close to the button ( No contact ), Included in touch and press , This function has only two buttons on one handle :
• PrimaryIndexTrigger
• PrimaryThumbButtons : Although there is only one , But close to the rocker 、Rest Area 、X、Y Key will be triggered
• SecondaryIndexTrigger
• SecondaryThumbButtons
7. RawNearTouch
8. Axis1D
9. RawAxis1D
10. Axis2D
11. RawAxis2D
in addition OVRInput Is a static class , So it is very convenient to monitor the buttons
if (OVRInput.Get(OVRInput.Button.PrimaryHandTrigger))
{
Debug.Log("PrimaryHandTrigger");
}
if (OVRInput.Get(OVRInput.Button.PrimaryIndexTrigger))
{
Debug.Log("PrimaryIndexTrigger");
}These are my initial learning , There are still many things that have not been understood , We'll continue later , I also look forward to the great God passing by to guide me .
边栏推荐
- 无心剑中文随感《探求真谛》
- 写一本畅销书是怎样的一种体验
- 数据库行业分析:从全球IT产业趋势到国产数据库发展之路
- Jenkins配置项目集成钉钉通知
- 请问一下flink mysql-cdc 如何保证server_id全局唯一呢?
- 炒股开户选择哪个券商公司是最安全最好呢
- Filebeat collects log data and transfers it to redis. Different es indexes are created based on log fields through logstash
- Typescript (7) generic
- 利用Inkscape转换为dxf文件的正确方法 svg导出dxf文件
- List的同步类比较
猜你喜欢

项目经理们在哪个时刻特别想逃离工作?
![azkaban启动报错 2022/06/20 21:39:27.726 +0800 ERROR [StdOutErrRedirect] [Azkaban] Exception in thread “m](/img/02/2e402f05022b36dc48ff47232e8535.png)
azkaban启动报错 2022/06/20 21:39:27.726 +0800 ERROR [StdOutErrRedirect] [Azkaban] Exception in thread “m

< JVM part I: memory and garbage collection part > 08 object instantiation and direct memory

Grafana 9 正式发布,更易用,更酷炫了!

2022年R2移动式压力容器充装试题模拟考试平台操作

<JVM上篇:内存与垃圾回收篇>08-对象实例化及直接内存

新手必会的静态站点生成器——Gridsome

JSP learning (3) -- JSP implicit object

How to do well in R & D efficiency measurement and index selection

云端极简部署Svelte3聊天室
随机推荐
中国移动手机用户缓慢增长,但努力争取高利润的5G套餐用户
【owt】owt-client-native-p2p-e2e-test vs2017 构建
How to do well in R & D efficiency measurement and index selection
Introduction to rsps2022 finalist | Dr. Yang Bai
知乎热问:一个程序员的水平能差到什么程度?
游戏NFT市场:OpenSea最易被切下的蛋糕
写一本畅销书是怎样的一种体验
When do project managers particularly want to escape from work?
第四届青年生命科学论坛 | 第一轮通知
When online and offline integration accelerates and information docking channels are diversified, the traditional center will not be necessary
今天19:30 | 科普大佬说,带大家探寻AI如何激发人类的创造力
Typescript (7) generic
The world's first AR contact lens, the entrance of metauniverse is really opened this time?
Nuxt - 超详细环境搭建及创建项目整体流程(create-nuxt-app)
"Half of Zhejiang's Venture Capital Circle" must be state-owned assets
[learn shell programming easily]-4. The difference between single quotation marks and double quotation marks, the operation of integer values, the definition of arrays in the shell and the detailed us
短视频直播源码,EditText输入框的使用
Killed by the script, and "resurrected" by camping
plsql变量赋值问题
Jenkins installation and upgrade