Add sample use case in Program.cs
This commit is contained in:
		
							
								
								
									
										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); | ||||||
|  | 			} | ||||||
| 		} | 		} | ||||||
| 	} | 	} | ||||||
| } | } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user