Skip to content

Commit

Permalink
v0.1
Browse files Browse the repository at this point in the history
Fix some strings.
Fix scripts.
  • Loading branch information
polygraphene committed Aug 21, 2018
1 parent 0192517 commit 53f3a05
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 54 deletions.
4 changes: 2 additions & 2 deletions FreePIEVRController/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyVersion("0.1.0.0")]
[assembly: AssemblyFileVersion("0.1.0.0")]
8 changes: 4 additions & 4 deletions FreePIEVRController/VRControllerFreePIEPlugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -83,18 +83,18 @@ public void Stop()

public string FriendlyName
{
get { return "VR Controller FreePIE Plugin"; }
get { return "VR Controller"; }
}

public bool GetProperty(int index, IPluginProperty property)
{
if (index == 0)
{
property.Name = "SomeProperty";
property.Caption = "VR Controller FreePIE plugin is installed";
property.HelpText = "VR Controller FreePIE plugin is installed";
property.Caption = "VR Controller is installed";
property.HelpText = "VR Controller is installed";

property.Choices.Add("VR Controller FreePIE plugin is installed", 1);
property.Choices.Add("VR Controller is installed", 1);

property.DefaultValue = 1;
return true;
Expand Down
91 changes: 46 additions & 45 deletions samples/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,48 +50,49 @@
diagnostics.watch(vrcontroller[0].deviceId)
diagnostics.watch(vrcontroller[0].temperature)

# only Daydream
diagnostics.watch(vrcontroller[1].orientation[0])
diagnostics.watch(vrcontroller[1].orientation[1])
diagnostics.watch(vrcontroller[1].orientation[2])

diagnostics.watch(vrcontroller[1].quaternion[0])
diagnostics.watch(vrcontroller[1].quaternion[1])
diagnostics.watch(vrcontroller[1].quaternion[2])
diagnostics.watch(vrcontroller[1].quaternion[3])

diagnostics.watch(vrcontroller[1].position[0])
diagnostics.watch(vrcontroller[1].position[1])
diagnostics.watch(vrcontroller[1].position[2])

diagnostics.watch(vrcontroller[1].touch)
diagnostics.watch(vrcontroller[1].click)
diagnostics.watch(vrcontroller[1].home)
diagnostics.watch(vrcontroller[1].app)
diagnostics.watch(vrcontroller[1].volup)
diagnostics.watch(vrcontroller[1].voldown)
# only GearVR
diagnostics.watch(vrcontroller[1].trigger)
diagnostics.watch(vrcontroller[1].button[0])

diagnostics.watch(vrcontroller[1].acceleration[0])
diagnostics.watch(vrcontroller[1].acceleration[1])
diagnostics.watch(vrcontroller[1].acceleration[2])

diagnostics.watch(vrcontroller[1].gyroscope[0])
diagnostics.watch(vrcontroller[1].gyroscope[1])
diagnostics.watch(vrcontroller[1].gyroscope[2])

# only GearVR
diagnostics.watch(vrcontroller[1].magnetometer[0])
diagnostics.watch(vrcontroller[1].magnetometer[1])
diagnostics.watch(vrcontroller[1].magnetometer[2])

diagnostics.watch(vrcontroller[1].trackpad[0])
diagnostics.watch(vrcontroller[1].trackpad[1])

diagnostics.watch(vrcontroller[1].version)
diagnostics.watch(vrcontroller[1].type)
diagnostics.watch(vrcontroller[1].bdaddr)
diagnostics.watch(vrcontroller[1].deviceId)
diagnostics.watch(vrcontroller[1].temperature)
if vrcontroller[1]:
# only Daydream
diagnostics.watch(vrcontroller[1].orientation[0])
diagnostics.watch(vrcontroller[1].orientation[1])
diagnostics.watch(vrcontroller[1].orientation[2])

diagnostics.watch(vrcontroller[1].quaternion[0])
diagnostics.watch(vrcontroller[1].quaternion[1])
diagnostics.watch(vrcontroller[1].quaternion[2])
diagnostics.watch(vrcontroller[1].quaternion[3])

diagnostics.watch(vrcontroller[1].position[0])
diagnostics.watch(vrcontroller[1].position[1])
diagnostics.watch(vrcontroller[1].position[2])

diagnostics.watch(vrcontroller[1].touch)
diagnostics.watch(vrcontroller[1].click)
diagnostics.watch(vrcontroller[1].home)
diagnostics.watch(vrcontroller[1].app)
diagnostics.watch(vrcontroller[1].volup)
diagnostics.watch(vrcontroller[1].voldown)
# only GearVR
diagnostics.watch(vrcontroller[1].trigger)
diagnostics.watch(vrcontroller[1].button[0])

diagnostics.watch(vrcontroller[1].acceleration[0])
diagnostics.watch(vrcontroller[1].acceleration[1])
diagnostics.watch(vrcontroller[1].acceleration[2])

diagnostics.watch(vrcontroller[1].gyroscope[0])
diagnostics.watch(vrcontroller[1].gyroscope[1])
diagnostics.watch(vrcontroller[1].gyroscope[2])

# only GearVR
diagnostics.watch(vrcontroller[1].magnetometer[0])
diagnostics.watch(vrcontroller[1].magnetometer[1])
diagnostics.watch(vrcontroller[1].magnetometer[2])

diagnostics.watch(vrcontroller[1].trackpad[0])
diagnostics.watch(vrcontroller[1].trackpad[1])

diagnostics.watch(vrcontroller[1].version)
diagnostics.watch(vrcontroller[1].type)
diagnostics.watch(vrcontroller[1].bdaddr)
diagnostics.watch(vrcontroller[1].deviceId)
diagnostics.watch(vrcontroller[1].temperature)
6 changes: 3 additions & 3 deletions samples/withalvr.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,9 +154,9 @@ def rotatevec(yaw_pitch_roll, vec):

alvr.override_controller_position = True

alvr.controller_position[c][0] = vrcontroller[c].position[0] * 3 + offset[0]
alvr.controller_position[c][1] = vrcontroller[c].position[1] * 3 + offset[1]
alvr.controller_position[c][2] = vrcontroller[c].position[2] * 3 + offset[2]
alvr.controller_position[c][0] = vrcontroller[c].position[0] + offset[0]
alvr.controller_position[c][1] = vrcontroller[c].position[1] + offset[1]
alvr.controller_position[c][2] = vrcontroller[c].position[2] + offset[2]
#alvr.controller_position[1-controller][0] = alvr.input_controller_position[0] + offset[0] + 0.1
#alvr.controller_position[1-controller][1] = alvr.input_controller_position[1] + offset[1] + 0.1
#alvr.controller_position[1-controller][2] = alvr.input_controller_position[2] + offset[2] + 0.1
Expand Down

0 comments on commit 53f3a05

Please sign in to comment.