Sierra Wireless Writing an embedded application loader Manuale Utente Pagina 78

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 102
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 77
GHI Electronics,LLC Embedded Master User Manual
Hardware and Software Library
using GHIElectronics.System;
using GHIElectronics.System.SystemDevices;
namespace MyNamespace
{
class Program
{
public static void Main()
{
// a mouse
Mouse mouse;
// must start system first, no event is associated
SystemManager.Start(null);
// get a list of devices
Device[] devices = SystemManager.GetDevices();
// look for a Mouse and initialize it.
foreach (Device device in devices)
{
if (device.deviceType == DeviceType.Mouse)
{
mouse = new Mouse(device);
break;
}
}
Thread.Sleep(Timeout.Infinite);
}
}
}
Example
Using event driven system.
Rev. 2.06 TFT Page 78 of 102 www.ghielectronics.com
Vedere la pagina 77
1 2 ... 73 74 75 76 77 78 79 80 81 82 83 ... 101 102

Commenti su questo manuale

Nessun commento