Skip to content

Commit 57e8f91

Browse files
committed
Fix easing value not being clamped outside local duration, fix spelling in tooltip
1 parent 7ef4968 commit 57e8f91

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

EasyOpenVR

OpenVR2WS/MainWindow.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
<Button x:Name="ButtonServerPort" Content="Set port" Margin="5 0 0 0" Padding="10 0 10 0" Click="Button_ServerPort_Click"/>
4444
</StackPanel>
4545
<StackPanel Orientation="Horizontal" Margin="5 0 5 5">
46-
<CheckBox x:Name="CheckBoxUseDevicePoses" Content="Use device pose instead of input pose" ToolTip="Devic poses are still retrieved when the SteamVR dashboard is up, input poses can be rebound." Checked="CheckBox_UseDevicePoses_Checked" Unchecked="CheckBox_UseDevicePoses_Checked"/>
46+
<CheckBox x:Name="CheckBoxUseDevicePoses" Content="Use device pose instead of input pose" ToolTip="Device poses are still retrieved when the SteamVR dashboard is up, input poses can be rebound." Checked="CheckBox_UseDevicePoses_Checked" Unchecked="CheckBox_UseDevicePoses_Checked"/>
4747
</StackPanel>
4848
<StackPanel Orientation="Horizontal" Margin="5 0 5 5">
4949
<CheckBox x:Name="CheckBoxRemoteSettings" VerticalAlignment="Center" Content="Enable remote setting updates" ToolTip="Enables updating of SteamVR settings by sending specific messages upstream." Checked="CheckBox_RemoteSettings_Checked" Unchecked="CheckBox_RemoteSettings_Checked"/>

OpenVR2WS/Properties/Resources.resx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,6 @@
125125
<value>..\resources\Logo.ico;System.Drawing.Icon, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
126126
</data>
127127
<data name="Version" xml:space="preserve">
128-
<value>v2.8.4</value>
128+
<value>v2.8.5</value>
129129
</data>
130130
</root>

OpenVR2WS/SpaceMover.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ private static void AnimationWorker(DataMoveSpace data, Action<string> callback)
9898
}
9999
vr.ModifyUniverse(offset, rotate, originPose, correctionPose, true);
100100
}
101-
else // With duration so we animate
101+
else // With duration so we animate
102102
{
103103
for (var currentFrame = 0; currentFrame < totalFrames; currentFrame++)
104104
{
@@ -163,11 +163,11 @@ private static Progress AnimationProgress(int totalFrames, int currentFrame, Spa
163163
// Progress limits
164164
if (currentFrame < entry.StartOffsetFrames)
165165
{
166-
progressResult.Value = 0;
166+
progress = 0;
167167
}
168168
else if (currentFrame >= totalFrames - entry.EndOffsetFrames)
169169
{
170-
progressResult.Value = entry.Entry.PingPong ? 0.0 : 1.0;
170+
progress = entry.Entry.PingPong ? 0.0 : 1.0;
171171
}
172172
else if (entry.Entry.PingPong)
173173
{

OpenVR2WS/Utils.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ public static Int32 NowUnixMs()
2727

2828
public static void DebugPrintBar(double normalizedValue, int totalSymbols = 50)
2929
{
30-
normalizedValue = Math.Max(0, Math.Min(1, normalizedValue));
31-
int symbolsToPrint = Math.Max(0, (int)(normalizedValue * totalSymbols));
30+
double clampedValue = Math.Max(0, Math.Min(1, normalizedValue));
31+
int symbolsToPrint = Math.Max(0, (int)(clampedValue * totalSymbols));
3232
string graph = new string('■', symbolsToPrint).PadRight(totalSymbols, '□');
33-
Debug.WriteLine(graph);
33+
Debug.WriteLine(graph+' '+normalizedValue.ToString("N2"));
3434
}
3535
}

Types/dist/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "openvr2ws-types",
3-
"version": "2.8.4",
3+
"version": "2.8.5",
44
"description": "TypeScript type definitions for the input and output of OpenVR2WS.",
55
"type": "module",
66
"types": "types/index.d.ts",

0 commit comments

Comments
 (0)