public MainWindow() { GamePad.Initialize(); InitEventHandlers(); var init = new Thread(() => Util.Init(this)); InitializeComponent(); GamePad.PlugIn(); ((INotifyCollectionChanged)ListViewPackets.Items).CollectionChanged += ListViewPackets_CollectionChanged; init.Start(); }
private static void Init() { simPad = SimGamePad.Instance; try { simPad.Initialize(); simPad.PlugIn(); state = simPad.State[0]; } catch { ShutDown(); MessageBox.Show("Could not initialize SimGamePad / ScpBus. Shutting down."); Application.Exit(); } TranslateMouse.InitMouse(); }