BioImager  5.0.0
A .NET microscopy imaging application based on Bio library. Supports various microscopes by using imported libraries & GUI automation. Supports XInput game controllers to move stage, take images, run ImageJ macros on images or Bio C# scripts.
Loading...
Searching...
No Matches
DInput.cs
Go to the documentation of this file.
1namespace BioImager
2{
3 public class DInput // 31 lines
4 {
5 // Variables.
6 private Dictionary<Keys, bool> InputKeys = new Dictionary<Keys, bool>();
7
8 // Methods.
9 internal void Initialize()
10 {
11 foreach (Keys key in Enum.GetValues(typeof(Keys)))
12 InputKeys[(Keys)key] = false;
13 }
14 internal bool IsKeyDown(Keys key)
15 {
16 return InputKeys[key];
17 }
18 internal void KeyDown(Keys key)
19 {
20 InputKeys[key] = true;
21 }
22 internal void KeyUp(Keys key)
23 {
24 InputKeys[key] = false;
25 }
26 }
27}
System.Windows.Forms.Keys Keys
Definition ImageView.cs:17