oculus按键大全
// OVRInput.Update();
if (OVRInput.GetUp(OVRInput.Button.Three))
{
Debug.Log("remote click");
text.text = "X";
}
if (OVRInput.GetUp(OVRInput.Button.Four))
{
Debug.Log("remote click");
text.text = "Y";
}
if (OVRInput.Get(OVRInput.Button.One,OVRInput.Controller.RTouch))
{
Debug.Log("攻击键A");
text.text = "Attack A";
}
if (OVRInput.Get(OVRInput.Button.Two, OVRInput.Controller.RTouch))
{
Debug.Log("攻击键B");
text.text = "ATTack B";
}
//if (OVRInput.Get(OVRInput.RawButton.LThumbstickUp))
//{
// Debug.Log("左侧遥感");
// text.text = "LeftSide";
//}
//if (OVRInput.Get(OVRInput.RawButton.LThumbstickDown))
//{
// Debug.Log("左侧遥感");
// text.text = "LeftSide";
//}
////右侧遥感上下左右
//if (OVRInput.Get(OVRInput.RawButton.RThumbstickUp))
//{
// Debug.Log("右侧遥感");
// text.text = "RThumbstickUp";
//}
//if (OVRInput.Get(OVRInput.RawButton.RThumbstickDown))
//{
// Debug.Log("右侧遥感");
// text.text = "RThumbstickDown";
//}
//if (OVRInput.Get(OVRInput.RawButton.RThumbstickRight))
//{
// Debug.Log("右侧遥感");
// text.text = "RThumbstickRight";
//}
//if (OVRInput.Get(OVRInput.RawButton.RThumbstickLeft))
//{
// Debug.Log("右侧遥感");
// text.text = "RThumbstickLeft";
//}
vt =OVRInput.Get(OVRInput.Axis2D.PrimaryThumbstick);
if (vt.x != 0 && vt.y != 0)
{
text.text = vt.x + " " + vt.y;
}
vt = OVRInput.Get(OVRInput.Axis2D.SecondaryThumbstick);
if (vt.x != 0 && vt.y != 0)
{
text.text = vt.x + " " + vt.y;
}
//射击
float aa=OVRInput.Get(OVRInput.Axis1D.PrimaryIndexTrigger);
if (aa!= 0)
{
text.text = aa+ " A1";
}
aa = OVRInput.Get(OVRInput.Axis1D.SecondaryIndexTrigger);
if (aa != 0)
{
text.text = aa + " A2";
}
//握柄按钮
float aaa=OVRInput.Get(OVRInput.Axis1D.PrimaryHandTrigger);
if (aaa != 0)
{
text.text = aaa + " AAAA1";
}
aaa = OVRInput.Get(OVRInput.Axis1D.SecondaryHandTrigger);
if (aaa != 0)
{
text.text = aaa + " AAAA2";
}
//遥感按键
if (OVRInput.Get(OVRInput.Button.PrimaryThumbstick))
{
text.text = "1";
Debug.Log("1");
}
if (OVRInput.Get(OVRInput.Button.SecondaryThumbstick))
{
text.text = "2";
Debug.Log("2");
}
//触摸按钮
if (OVRInput.Get(OVRInput.Touch.PrimaryThumbRest))
{
text.text = "3";
Debug.Log("3");
}
if (OVRInput.Get(OVRInput.Touch.SecondaryThumbRest))
{
text.text = "4";
Debug.Log("4");
}
oculus按键大全的更多相关文章
- VBS自动按键大全,vbs基本和特殊按键
CreateObject("Wscript.Shell") SendKeys [String] 脚本实现自动按键盘的某个键 过程是:按下F5间隔50毫秒松开F5间隔3000毫秒按下 ...
- Vim常用按键大全
Vim完全可以用键盘进行操作.本文将常用的按键归纳总结. 第一部分:一般模式可用的按钮,如光标移动.复制粘贴.查找替换等 移动光标的方法 h, j, k, l 光标向左,下,上,右移动 Ctrl + ...
- TXT文件用法大全【荐】--------按键精灵
来源:全文链接 (3)读取TXT文件指定某一行的第?到第?个字 UserVar t=2 "读出txt第几行文本" UserVar i=5 "从第几个字开始读取" ...
- 键盘按键keyCode大全,js页面快捷键
字母和数字键的键码值(keyCode) 按键 键码 按键 键码 按键 键码 按键 键码 A 65 J 74 S 83 1 49 B 66 K 75 T 84 2 50 C 67 L 76 U 85 3 ...
- 键盘按钮keyCode大全:获取按键对应的键值的方法
没有大全,只有方法,授人与鱼不如授人于渔: 下面这行代码,大家可以打在控制台里,直接进行测试: document.body.onkeyup = function (e) { e = e || wind ...
- 键盘按键KeyCode大全
- adb 常用命令大全(6)- 模拟按键输入
语法格式 input [<source>] <command> [<arg>...] 物理键 # 电源键 adb shell input keyevent 26 # ...
- [No00009B]win10快捷键大全
微软为Win10命令行(Command Prompt)加入了Ctrl + V的支持 Win10新增功能快捷键大全: 贴靠窗口:Win + 左/右 > Win + 上/下 > 窗口可以变为 ...
- JavaScript资源大全中文版(Awesome最新版--转载自张果老师博客)
JavaScript资源大全中文版(Awesome最新版) 目录 前端MVC 框架和库 包管理器 加载器 打包工具 测试框架 框架 断言 覆盖率 运行器 QA 工具 基于 Node 的 CMS 框 ...
- Android Permission 访问权限大全(转)
程序执行需要读取到安全敏感项必需在androidmanifest.xml中声明相关权限请求, 完整列表如下: android.permission.ACCESS_CHECKIN_PROPERTIES允 ...
随机推荐
- 使用Apache PDFBox实现拆分、合并PDF
目录 使用Apache PDFBox实现拆分.合并PDF 问题背景 Apache PDFBox介绍 拆分PDF 合并PDF 拆分 + 合并 完整代码 参考: 使用Apache PDFBox实现拆分.合 ...
- 直播平台搭建源码,canvas 画一条波浪线 进度条
直播平台搭建源码,canvas 画一条波浪线 进度条 <template> <view> <canvas :style="{'width': width ...
- [部署日记]Android Studio在安装完后,sdk依旧提示SDK emulator directory is missing
问题起源: 今天在闲着没事搞了个go的rest-api,用postman测试了一下可行,于是一拍大腿决定写一个安卓手机程序,于是一拍大腿重新下载了卸载没多久因为没空间放原神的Android Studi ...
- 实验1task1
<实验结论> #include <stdio.h> #include <stdlib.h> int main() { printf(" O \n&qu ...
- C# IObservable与IObserver通知机制 观察者模式(推式模型)
using System; using System.Collections.Generic; using System.Linq; using System.Threading; using Sys ...
- wpf TreeView 数据绑定
<Window x:Class="TsyCreateProjectContent.Window1" xmlns="http://schemas.microsoft. ...
- linux下第三方库的配置和链接——以opencv为例
安装OpenCV(可参考链接) 下载source到 /usr/local/路径下 新建 /build/ cmake 编译 添加库路径 vim /etc/ld.so.conf 该目录作用参考链接 输入: ...
- nacos原理
配置中心原理 1.Nacos 客户端使用长轮询请求客户端变更数据,并且设置30s超时,当配置发生变化响应会立即返回,否则一直等到29.5s之后再返回响应. 2.客户端的请求到达服务端后,服务端将该请求 ...
- vulnhub:My_Tomcat_Host靶机
kali:192.168.111.111 靶机:192.168.111.171 信息收集 端口扫描 nmap -A -v -sV -T5 -p- --script=http-enum 192.168. ...
- fabric2.2学习笔记1
fabric2.2学习笔记1 20201303张奕博 2023年1月9日 hyperledger fabric 结构分析 每个Server作用: AdminServer:控制该节点的命运,可以删除该节 ...