-
Notifications
You must be signed in to change notification settings - Fork 0
/
Program.cs
46 lines (38 loc) · 1.09 KB
/
Program.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
namespace LeapExpression;
static class Program
{
private static FormHelper helper = new FormHelper();
/// <summary>
/// The leap motion handle for the running program.
/// </summary>
public static LeapMotionHandle leapMotionHandle;
/// <summary>
/// The tracking location at the last specified MIDI event.
/// <summary>
public static LeapMotionHandle.LastLocation lastLocation;
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
// To customize application configuration such as set high DPI settings or default font,
// see https://aka.ms/applicationconfiguration.
ApplicationConfiguration.Initialize();
Task.Run(() =>
{
while (true) {
Console.Out.WriteLine("try ReflectMidiInput()");
MidiInterop.ReflectMidiInput();
Console.Out.WriteLine("tried ReflectMidiInput()");
}
});
// Task.Run(() =>
// {
var mainWindow = new MainWindow();
Application.Run(mainWindow);
// });
// var midiInput = mainWindow.GetMidiInputDevice();
// var inputDevices = helper.GetMidiDevices(MidiDevice.Inputs);
}
}