public BigButtonMapper() { InitializeComponent(); _device = new XboxBigButtonDevice(); _device.ButtonStateChanged += _device_ButtonStateChanged; _device.Connect(); }
public ExampleForm() { InitializeComponent(); _device = new XboxBigButtonDevice(); _device.ButtonStateChanged += _device_ButtonStateChanged; _device.Connect(); }
public MainForm() { InitializeComponent(); // Initialize the movie screen MovieScreen = Screen.PrimaryScreen; _device = new XboxBigButtonDevice(); _device.ButtonStateChanged += _device_ButtonStateChanged; _device.Connect(); }