Exemplo n.º 1
0
 public static JoystickBase getJoyStickByName(string name)
 {
     if (pid == PlatformID.Unix)
     {
         return(JoystickLinux.getJoyStickByName(name));
     }
     else
     {
         return(JoystickWindows.getJoyStickByName(name));
     }
 }
Exemplo n.º 2
0
 public static IList <string> getDevices()
 {
     if (pid == PlatformID.Unix)
     {
         return(JoystickLinux.getDevices());
     }
     else
     {
         return(JoystickWindows.getDevices().Select(a => a.ProductName.TrimUnPrintable()).ToList());
     }
 }