Example #1
0
 public void CheckInput()
 {
     while (InputLib.CheckInput())
     {
         for (int i = devices.Count; i-- > 0;)
         {
             devices[i].CheckInput();
         }
     }
 }
Example #2
0
 void WindowGUI(int windowID)
 {
     dev = InputLib.devices[devidx];
     AI_Database.DeviceNames.TryGetValue(dev.name, out devNames);
     InputLib.CheckInput();
     if (GUILayout.Button(dev.name))
     {
         if (++devidx >= InputLib.devices.Count)
         {
             devidx = 0;
         }
     }
     GUILayout.BeginHorizontal();
     DumpAxes();
     DumpButtons();
     GUILayout.EndHorizontal();
     GUI.DragWindow(new Rect(0, 0, 10000, 20));
 }