spnav-csharp-wrapper/Program.cs

21 lines
310 B
C#
Raw Normal View History

2018-05-30 17:36:06 +00:00
using System;
using spnavwrapper;
2018-05-30 17:15:37 +00:00
namespace spnavcsharpwrapper
{
class Program
{
static void Main(string[] args)
{
2018-05-30 17:36:06 +00:00
SpaceNav.Instance.Threshold = 5;
SpaceNav.Instance.Sensitivity = 0.1;
for (; ; )
{
var ev = SpaceNav.Instance.WaitEvent(100);
Console.WriteLine(ev);
}
2018-05-30 17:15:37 +00:00
}
}
}