rename VmcExtHmdPos to VmcExtDevicePos, handle more addresses with it
This commit is contained in:
parent
ee4dd77a2b
commit
f849b03530
|
@ -84,48 +84,23 @@ namespace godotVmcSharp
|
||||||
MidiButton(m.Data);
|
MidiButton(m.Data);
|
||||||
break;
|
break;
|
||||||
case "/VMC/Ext/Hmd/Pos":
|
case "/VMC/Ext/Hmd/Pos":
|
||||||
new VmcExtHmdPos(m);
|
new VmcExtDevicePos(m);
|
||||||
|
break;
|
||||||
|
case "/VMC/Ext/Con/Pos":
|
||||||
|
new VmcExtDevicePos(m);
|
||||||
|
break;
|
||||||
|
case "/VMC/Ext/Tra/Pos":
|
||||||
|
new VmcExtDevicePos(m);
|
||||||
|
break;
|
||||||
|
case "/VMC/Ext/Hmd/Pos/Local":
|
||||||
|
new VmcExtDevicePos(m);
|
||||||
|
break;
|
||||||
|
case "/VMC/Ext/Con/Pos/Local":
|
||||||
|
new VmcExtDevicePos(m);
|
||||||
|
break;
|
||||||
|
case "/VMC/Ext/Tra/Pos/Local":
|
||||||
|
new VmcExtDevicePos(m);
|
||||||
break;
|
break;
|
||||||
// case "/VMC/Ext/Con/Pos":
|
|
||||||
// if (m.Data.Count == 8)
|
|
||||||
// {
|
|
||||||
// GD.Print(Transform8(m.Data, m.Address.ToString(), new List<string>{"serial", "p.x", "p.y", "p.z", "q.x", "q.y", "q.z", "q.w"}).ToString());
|
|
||||||
// } else {
|
|
||||||
// GD.Print($"Invalid number of arguments for \"{m.Address.ToString()}\". Expected 8, received {m.Data.Count}.");
|
|
||||||
// }
|
|
||||||
// break;
|
|
||||||
// case "/VMC/Ext/Tra/Pos":
|
|
||||||
// if (m.Data.Count == 8)
|
|
||||||
// {
|
|
||||||
// GD.Print(Transform8(m.Data, m.Address.ToString(), new List<string>{"serial", "p.x", "p.y", "p.z", "q.x", "q.y", "q.z", "q.w"}).ToString());
|
|
||||||
// } else {
|
|
||||||
// GD.Print($"Invalid number of arguments for \"{m.Address.ToString()}\". Expected 8, received {m.Data.Count}.");
|
|
||||||
// }
|
|
||||||
// break;
|
|
||||||
// case "/VMC/Ext/Hmd/Pos/Local":
|
|
||||||
// if (m.Data.Count == 8)
|
|
||||||
// {
|
|
||||||
// GD.Print(Transform8(m.Data, m.Address.ToString(), new List<string>{"serial", "p.x", "p.y", "p.z", "q.x", "q.y", "q.z", "q.w"}).ToString());
|
|
||||||
// } else {
|
|
||||||
// GD.Print($"Invalid number of arguments for \"{m.Address.ToString()}\". Expected 8, received {m.Data.Count}.");
|
|
||||||
// }
|
|
||||||
// break;
|
|
||||||
// case "/VMC/Ext/Con/Pos/Local":
|
|
||||||
// if (m.Data.Count == 8)
|
|
||||||
// {
|
|
||||||
// GD.Print(Transform8(m.Data, m.Address.ToString(), new List<string>{"serial", "p.x", "p.y", "p.z", "q.x", "q.y", "q.z", "q.w"}).ToString());
|
|
||||||
// } else {
|
|
||||||
// GD.Print($"Invalid number of arguments for \"{m.Address.ToString()}\". Expected 8, received {m.Data.Count}.");
|
|
||||||
// }
|
|
||||||
// break;
|
|
||||||
// case "/VMC/Ext/Tra/Pos/Local":
|
|
||||||
// if (m.Data.Count == 8)
|
|
||||||
// {
|
|
||||||
// GD.Print(Transform8(m.Data, m.Address.ToString(), new List<string>{"serial", "p.x", "p.y", "p.z", "q.x", "q.y", "q.z", "q.w"}).ToString());
|
|
||||||
// } else {
|
|
||||||
// GD.Print($"Invalid number of arguments for \"{m.Address.ToString()}\". Expected 8, received {m.Data.Count}.");
|
|
||||||
// }
|
|
||||||
// break;
|
|
||||||
case "/VMC/Ext/Rcv":
|
case "/VMC/Ext/Rcv":
|
||||||
ValidateReceiveEnable(m.Data);
|
ValidateReceiveEnable(m.Data);
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -22,7 +22,7 @@ using System.Collections.Generic;
|
||||||
|
|
||||||
namespace godotVmcSharp
|
namespace godotVmcSharp
|
||||||
{
|
{
|
||||||
public class VmcExtHmdPos : VmcMessage
|
public class VmcExtDevicePos : VmcMessage
|
||||||
{
|
{
|
||||||
public string serial { get; }
|
public string serial { get; }
|
||||||
public Godot.Transform3D transform { get; }
|
public Godot.Transform3D transform { get; }
|
||||||
|
|
Loading…
Reference in New Issue
Block a user