Add sample use case in Program.cs
This commit is contained in:
parent
818a7ba3f2
commit
6e3b39a78f
12
Program.cs
12
Program.cs
@ -1,10 +1,20 @@
|
|||||||
using System;
|
using System;
|
||||||
|
using spnavwrapper;
|
||||||
|
|
||||||
namespace spnavcsharpwrapper
|
namespace spnavcsharpwrapper
|
||||||
{
|
{
|
||||||
class Program
|
class Program
|
||||||
{
|
{
|
||||||
static void Main(string[] args)
|
static void Main(string[] args)
|
||||||
{
|
{
|
||||||
|
SpaceNav.Instance.Threshold = 5;
|
||||||
|
SpaceNav.Instance.Sensitivity = 0.1;
|
||||||
|
|
||||||
|
for (; ; )
|
||||||
|
{
|
||||||
|
var ev = SpaceNav.Instance.WaitEvent(100);
|
||||||
|
Console.WriteLine(ev);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user