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允 ...
随机推荐
- selenium+python的网站爬虫
爬取网站听起来就是程序员的标配,之前一直没有时间学一下,最近有空学习一下顺便记录一下 爬取网站实际上就是利用计算机模拟人的操作来对网站的前端进行访问,而各大浏览器也给计算机提供了访问的接口,也就是浏览 ...
- update_base_x.txt
update g_temp.test_baseset field_date = '20210101'::datewhere field_int = 6
- PyTorch Live get started from Windows
〇. PyTorch Live https://pytorch.org/live/docs/tutorials/get-started-manually/ 以下 命令 建议都用 以管理员身份运行的 P ...
- GeoServer 发布PostGIS数据库中的栅格数据
1.导入栅格数据 进入PostgreSQL\bin目录,利用raster2pgsql工具导入栅格数据,具体命令如下所示: <!-- 分块,切片存储到PostGIS数据库中 --> rast ...
- websocket状态码
状态码 描述 0–999 保留段, 未使用 1000 正常关闭; 无论为何目的而创建, 该链接都已成功完成任务. 1001 终端离开, 可能因为服务端错误, 也可能因为浏览器正从打开连接的页面跳转离开 ...
- windows下MinGW64编译环境设置
windows下MinGW64编译环境设置 1. MinGW 介绍 MinGW 的全称是:Minimalist GNU on Windows .是将经典的开源 C语言 编译器 GCC 移植到了 Win ...
- C# List间的交集并集差集
一.简单类型List的交集并集差集 1.先定义两个简单类型的List List<int> listA = new List<int>() { 1, 2, 3, 4, 5, 6, ...
- UI基础 - UIAppearance协议
前言 1 - 在一些 app 中会涉及到更改外观设置的功能,最普遍的就是夜间模式和白天模式的切换,而对于外观的更改必定是一个全局的东西.这在 iOS5 以前想要实现这样的效果是比较困难的,但是 iOS ...
- Keil51单片机解决数字显示不稳的问题
Keil51单片机解决数字显示不稳的问题 数字显示不稳,就是我们人眼的特点决定的,0.1秒的残留现象,低于这个值人眼发现不了其中变化,大于这个值就会出现同一个数字闪烁的现象.解决的方法就是所有数字,第 ...
- luna lunatic
Luna是罗马神话的月神.英语中Lunacy.Lunatic等意指疯狂的字语源均来自Luna.月亮的阴晴圆缺影响地球的潮汐涨退甚至生物周期,故此古时的人们相信月亮拥有使人疯狂的魔力,人狼等传说亦是因此 ...