Add sample use case in Program.cs

This commit is contained in:
Thibaud Gasser 2018-05-30 19:36:06 +02:00
parent 818a7ba3f2
commit 6e3b39a78f

View File

@ -1,10 +1,20 @@
using System;
using System;
using spnavwrapper;
namespace spnavcsharpwrapper
{
class Program
{
static void Main(string[] args)
{
SpaceNav.Instance.Threshold = 5;
SpaceNav.Instance.Sensitivity = 0.1;
for (; ; )
{
var ev = SpaceNav.Instance.WaitEvent(100);
Console.WriteLine(ev);
}
}
}
}