Skip to content

Commit 4f41bc2

Browse files
committed
Fix line endings in .cs files.
1 parent 4b3b373 commit 4f41bc2

16 files changed

Lines changed: 354 additions & 354 deletions
Lines changed: 43 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,43 @@
1-
/// OSVR-Unity Connection
2-
///
3-
/// http://sensics.com/osvr
4-
///
5-
/// <copyright>
6-
/// Copyright 2014 Sensics, Inc.
7-
///
8-
/// Licensed under the Apache License, Version 2.0 (the "License");
9-
/// you may not use this file except in compliance with the License.
10-
/// You may obtain a copy of the License at
11-
///
12-
/// http://www.apache.org/licenses/LICENSE-2.0
13-
///
14-
/// Unless required by applicable law or agreed to in writing, software
15-
/// distributed under the License is distributed on an "AS IS" BASIS,
16-
/// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17-
/// See the License for the specific language governing permissions and
18-
/// limitations under the License.
19-
/// </copyright>
20-
21-
using UnityEngine;
22-
using System.Collections;
23-
24-
/// <summary>
25-
/// Note that this derives from the OSVR.Unity.InterfaceBase, and so unlike the code in HandleButtonPress.cs,
26-
/// no class attributes are required to enforce the presence of an InterfaceGameObject component, nor is any
27-
/// GetComponent usage required to get to the InterfaceGameObject. We can just rely on it being there and use
28-
/// the inherited properties to access it concisely. Thus, this is the preferred technique for handling callbacks.
29-
/// </summary>
30-
public class SampleAnalog : OSVR.Unity.RequiresAnalogInterface
31-
{
32-
33-
// Use this for initialization
34-
void Start()
35-
{
36-
this.Interface.StateChanged += Interface_StateChanged;
37-
}
38-
39-
void Interface_StateChanged(object sender, OSVR.ClientKit.TimeValue timestamp, int sensor, double report)
40-
{
41-
Debug.Log("Got analog value " + report);
42-
}
43-
}
1+
/// OSVR-Unity Connection
2+
///
3+
/// http://sensics.com/osvr
4+
///
5+
/// <copyright>
6+
/// Copyright 2014 Sensics, Inc.
7+
///
8+
/// Licensed under the Apache License, Version 2.0 (the "License");
9+
/// you may not use this file except in compliance with the License.
10+
/// You may obtain a copy of the License at
11+
///
12+
/// http://www.apache.org/licenses/LICENSE-2.0
13+
///
14+
/// Unless required by applicable law or agreed to in writing, software
15+
/// distributed under the License is distributed on an "AS IS" BASIS,
16+
/// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17+
/// See the License for the specific language governing permissions and
18+
/// limitations under the License.
19+
/// </copyright>
20+
21+
using UnityEngine;
22+
using System.Collections;
23+
24+
/// <summary>
25+
/// Note that this derives from the OSVR.Unity.InterfaceBase, and so unlike the code in HandleButtonPress.cs,
26+
/// no class attributes are required to enforce the presence of an InterfaceGameObject component, nor is any
27+
/// GetComponent usage required to get to the InterfaceGameObject. We can just rely on it being there and use
28+
/// the inherited properties to access it concisely. Thus, this is the preferred technique for handling callbacks.
29+
/// </summary>
30+
public class SampleAnalog : OSVR.Unity.RequiresAnalogInterface
31+
{
32+
33+
// Use this for initialization
34+
void Start()
35+
{
36+
this.Interface.StateChanged += Interface_StateChanged;
37+
}
38+
39+
void Interface_StateChanged(object sender, OSVR.ClientKit.TimeValue timestamp, int sensor, double report)
40+
{
41+
Debug.Log("Got analog value " + report);
42+
}
43+
}

OSVR-Unity/Assets/OSVRUnity/Sample/scripts/HandleButtonPress.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@
2828
public class HandleButtonPress : MonoBehaviour
2929
{
3030
public void Start()
31-
{
31+
{
3232
gameObject.GetComponent<OSVR.Unity.ButtonInterface>().Interface.StateChanged += handleButton;
33-
}
34-
35-
public void handleButton(object sender, OSVR.ClientKit.TimeValue timestamp, int sensor, byte report)
36-
{
37-
Debug.Log("Got button: " + sensor.ToString() + " state is " + report.ToString());
33+
}
34+
35+
public void handleButton(object sender, OSVR.ClientKit.TimeValue timestamp, int sensor, byte report)
36+
{
37+
Debug.Log("Got button: " + sensor.ToString() + " state is " + report.ToString());
3838
}
3939
}

OSVR-Unity/Assets/OSVRUnity/src/AnalogInterface.cs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -36,28 +36,28 @@ public class AnalogInterface : InterfaceGameObjectBase
3636
public OSVR.ClientKit.AnalogInterface Interface
3737
{
3838
get
39-
{
39+
{
4040
this.Start();
4141
return iface;
4242
}
4343
}
4444

4545
override protected void Start()
46-
{
47-
base.Start();
48-
if (iface == null && !String.IsNullOrEmpty(usedPath))
49-
{
50-
iface = OSVR.ClientKit.AnalogInterface.GetInterface(
51-
ClientKit.instance.context, usedPath);
46+
{
47+
base.Start();
48+
if (iface == null && !String.IsNullOrEmpty(usedPath))
49+
{
50+
iface = OSVR.ClientKit.AnalogInterface.GetInterface(
51+
ClientKit.instance.context, usedPath);
5252
}
5353
}
5454

5555
protected override void Stop()
5656
{
5757
base.Stop();
5858
if(iface != null)
59-
{
60-
iface.Dispose();
59+
{
60+
iface.Dispose();
6161
iface = null;
6262
}
6363
}

OSVR-Unity/Assets/OSVRUnity/src/ButtonInterface.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,10 @@ override protected void Start()
5454

5555
protected override void Stop()
5656
{
57-
base.Stop();
57+
base.Stop();
5858
if (iface != null)
59-
{
60-
iface.Dispose();
59+
{
60+
iface.Dispose();
6161
iface = null;
6262
}
6363
}

0 commit comments

Comments
 (0)