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允 ...
随机推荐
- 直播平台制作,Android 悬浮窗延时5秒返回APP问题
直播平台制作,Android 悬浮窗延时5秒返回APP问题 案例需求分析:在APP界面,点击Home键后,APP退出后台,同时会打开一个悬浮窗,当用户点击悬浮窗上的按键会返回APP. 出现的问题是:点 ...
- uniapp获取位置
uni.getLocation({ type: 'gcj02', geocode: true, success: (res) => { uni.showModal({ title:JSON.st ...
- Scala集合排序
Scala集合排序有三种方法:sorted.sortBy().sortWith() (1)sorted 对一个集合进行自然排序,通过传递隐式的Ordering源码中有两点值得注意的地方:1.sorte ...
- 《TensorFlow+Keras自然语言处理实战》图书介绍
#好书推荐##好书奇遇季#<TensorFlow+Keras自然语言处理实战>.当当京东天猫均有发售. https://item.jd.com/12788707.html 文后有本书配套源 ...
- c++ 函数篇
1.函数是什么样子: dataType functionName( dataType1 param1, dataType2 param2 ... ){//do something }//形式参数pa ...
- Java实现输出三角形
本来是想实现空心的,想了太久没写出来就算了 代码 package com.qaq.strruct;public class TestDemo01 { //打印三角形 //思路:空格的距离和星星的数量成 ...
- css 多行隐藏
overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box- ...
- K8S informer机制
一.informer介绍 Kubernetes基于声明式API的设计理念,所谓声明式API,即告诉Kubernetes Controller资源对象的期望状态,这样为Kubernetes在事件通知后, ...
- darkriscv笔记
1 按照默认设置,前4K空间为ROM,后4K空间是RAM.为什么RAM需要初值,初值从哪儿来? 2 指令分类 LUI: AUTPC: JAL: JALR: BCC : BEQ/BGE /BGEU/BL ...
- Go 设置代理
对于 Windows 用户,可以在PowerShell中设置: $env:GOPROXY = "https://goproxy.io"