Skip to content

Commit 65f1b03

Browse files
author
lawwong
committed
Update to v1.20.1
* Changes - Add support for Unity 6 - Fix compile errors & warnnings - Add support for VIVE OpenXR Unity SDK - Now support hand tracking thru Unity XR Hand - Goto PackageManager > install "XR Hands" (com.unity.xr.hands) - Goto ProjectSettings > XR Plug-in Management > OpenXR > Enabled Interaction Profiles > add "VIVE XR Hand Interaction" - Goto ProjectSettings > XR Plug-in Management > OpenXR > OpenXR Feature Groups > enable "Hand Tracking Subsystem" - Tracked hand will identify as VRModuleDeviceModel.UnityXRHandRight/Left - Add support for latest Wave XR plugin - Fix selecting wrong left/right device in some cases - Add support for latest Oculus plugin - Fix tracked hand model not working * Bug Fix - Fix grabber(ColliderEventCaster) emitting incorrect button
2 parents 582d5d2 + de42210 commit 65f1b03

File tree

4 files changed

+11
-8
lines changed

4 files changed

+11
-8
lines changed

Assets/HTC.UnityPlugin/ViveInputUtility/Scripts/VIUVersion.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ namespace HTC.UnityPlugin.Vive
66
{
77
public static class VIUVersion
88
{
9-
public static readonly Version current = new Version("1.20.0.0");
9+
public static readonly Version current = new Version("1.20.1.0");
1010
}
1111
}

Assets/HTC.UnityPlugin/ViveInputUtility/Scripts/ViveColliderEvent/ViveColliderEventCaster.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,20 +46,20 @@ protected void FilterOutAssignedButton()
4646
{
4747
EnumUtils.SetFlag(ref m_additionalButtons, (int)m_buttonTrigger, false);
4848
EnumUtils.SetFlag(ref m_additionalButtons, (int)m_buttonPadOrStick, false);
49-
EnumUtils.SetFlag(ref m_additionalButtons, (int)m_buttonFunctionKey, false);
5049
EnumUtils.SetFlag(ref m_additionalButtons, (int)m_buttonGripOrHandTrigger, false);
50+
EnumUtils.SetFlag(ref m_additionalButtons, (int)m_buttonFunctionKey, false);
5151
}
5252

5353
protected virtual void Start()
5454
{
5555
buttonEventDataList.Add(new ViveColliderButtonEventData(this, m_buttonTrigger, ColliderButtonEventData.InputButton.Trigger));
5656
if (m_buttonPadOrStick != ControllerButton.None) { buttonEventDataList.Add(new ViveColliderButtonEventData(this, m_buttonPadOrStick, ColliderButtonEventData.InputButton.PadOrStick)); }
57-
if (m_buttonGripOrHandTrigger != ControllerButton.None) { buttonEventDataList.Add(new ViveColliderButtonEventData(this, m_buttonFunctionKey, ColliderButtonEventData.InputButton.FunctionKey)); }
58-
if (m_buttonFunctionKey != ControllerButton.None) { buttonEventDataList.Add(new ViveColliderButtonEventData(this, m_buttonGripOrHandTrigger, ColliderButtonEventData.InputButton.GripOrHandTrigger)); }
57+
if (m_buttonGripOrHandTrigger != ControllerButton.None) { buttonEventDataList.Add(new ViveColliderButtonEventData(this, m_buttonGripOrHandTrigger, ColliderButtonEventData.InputButton.GripOrHandTrigger)); }
58+
if (m_buttonFunctionKey != ControllerButton.None) { buttonEventDataList.Add(new ViveColliderButtonEventData(this, m_buttonFunctionKey, ColliderButtonEventData.InputButton.FunctionKey)); }
5959

6060
FilterOutAssignedButton();
6161

62-
var eventBtn = ColliderButtonEventData.InputButton.GripOrHandTrigger + 1;
62+
var eventBtn = ColliderButtonEventData.InputButton.FunctionKey + 1;
6363
var addBtns = m_additionalButtons;
6464
for (ControllerButton btn = 0; addBtns > 0u; ++btn, addBtns >>= 1)
6565
{

Assets/HTC.UnityPlugin/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "com.htc.upm.vive-input-utility",
3-
"version": "1.20.0",
3+
"version": "1.20.1",
44
"displayName": "VIVE Input Utility",
55
"description": "The VIVE Input Utility (VIU) is a toolkit for developing VR experiences in Unity, especially with the VIVE/VIVE Pro but also targeting many platforms from a common code base including Oculus Rift, Rift S Go, Quest, Google Daydream, VIVE Wave SDK (e.g. VIVE Focus standalone) and additional VR platforms as supported by Unity such as Microsoft's 'Mixed Reality' VR headsets and more.\n\nCompatible with SteamVR 2.4.0+ and Oculus Integration 16.0+.\n\nView license:\nhttps://github.com/ViveSoftware/ViveInputUtility-Unity/blob/develop/LICENSE.md",
66
"keywords": [

CHANGELOG.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# Vive Input Utility for Unity - v1.20.0
1+
# Vive Input Utility for Unity - v1.20.1
22
Copyright (c) 2016-2024, HTC Corporation. All rights reserved.
33

44

5-
## Changes for v1.20.0:
5+
## Changes for v1.20.1:
66

77
* Changes
88
- Add support for Unity 6
@@ -17,6 +17,9 @@ Copyright (c) 2016-2024, HTC Corporation. All rights reserved.
1717
- Fix selecting wrong left/right device in some cases
1818
- Add support for latest Oculus plugin
1919
- Fix tracked hand model not working
20+
21+
* Bug Fix
22+
- Fix grabber(ColliderEventCaster) emitting incorrect button
2023

2124

2225
## Changes for v1.19.0:

0 commit comments

Comments
 (0)